diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4add694efd..0a0c12283c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,10 +84,13 @@ jobs: fetch-depth: 0 token: ${{ secrets.ACCESS_TOKEN }} - name: Copy reference files to website repo + if: ${{ steps.semver.outputs.is-prerelease != 'true' }} run: cp docs/reference/data.* website/src/templates/pages/reference/ - name: Copy library files to website repo + if: ${{ steps.semver.outputs.is-prerelease != 'true' }} run: cp lib/p5.min.js lib/addons/p5.sound.min.js website/src/assets/js/ - name: Modify version number on website + if: ${{ steps.semver.outputs.is-prerelease != 'true' }} uses: fjogeleit/yaml-update-action@v0.10.0 with: valueFile: website/src/data/data.yml @@ -96,16 +99,19 @@ jobs: commitChange: false updateFile: true - name: Update version.json on website repo + if: ${{ steps.semver.outputs.is-prerelease != 'true' }} uses: restackio/update-json-file-action@v2.0 with: file: website/dist/download/version.json fields: '{"version": "${{ steps.version-number.outputs.version }}", "date": "${{ steps.date.outputs.date }}"}' - name: Update en.json on website repo + if: ${{ steps.semver.outputs.is-prerelease != 'true' }} run: | cd website npm ci npx grunt generate_enJSON - name: Commit updated website files + if: ${{ steps.semver.outputs.is-prerelease != 'true' }} run: | cd website git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" @@ -113,6 +119,7 @@ jobs: git add . git commit -m "Update p5.js to ${{ github.ref_name }}" - name: Push updated website repo + if: ${{ steps.semver.outputs.is-prerelease != 'true' }} uses: ad-m/github-push-action@v0.6.0 with: github_token: ${{ secrets.ACCESS_TOKEN }} @@ -130,10 +137,12 @@ jobs: fetch-depth: 0 token: ${{ secrets.ACCESS_TOKEN }} - name: Copy new version files to Bower repo + if: ${{ steps.semver.outputs.is-prerelease != 'true' }} run: | cp lib/*.js bower/lib/ cp lib/addons/* bower/lib/addons/ - name: Commit updated Bower files + if: ${{ steps.semver.outputs.is-prerelease != 'true' }} run: | cd bower git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" @@ -141,6 +150,7 @@ jobs: git add . git commit -m "Update p5.js to ${{ github.ref_name }}" - name: Push updated Bower repo + if: ${{ steps.semver.outputs.is-prerelease != 'true' }} uses: ad-m/github-push-action@v0.6.0 with: github_token: ${{ secrets.ACCESS_TOKEN }}