name: Prepare & Deploy a Release on: release: types: [published] env: WP_MULTISITE: 0 jobs: release: name: New Release if: github.repository == 'oidc-wp/openid-connect-generic' runs-on: ubuntu-latest steps: - name: Checkout Code uses: actions/checkout@v2 - name: Setup Node Environment uses: actions/setup-node@v1 # https://github.com/marketplace/actions/setup-node-js-environment with: node-version: 14.x - name: Cache Node Modules uses: actions/cache@v2 env: npm-cache-name: cache-node-modules with: # npm cache files are stored in `~/.npm` on Linux/macOS path: ~/.npm key: ${{ runner.os }}-build-${{ env.npm-cache-name }}-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-build-${{ env.npm-cache-name }}- ${{ runner.os }}-build- ${{ runner.os }}- - name: NPM Install run: npm ci - name: Prepare a WordPress.org Release run: npm run release - name: WordPress.org Plugin Deploy uses: nk-o/action-wordpress-plugin-deploy@master # https://github.com/marketplace/actions/wordpress-plugin-deploy env: SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} SVN_USERNAME: ${{ secrets.SVN_USERNAME }} SOURCE_DIR: dist/ SLUG: daggerhart-openid-connect-generic