Skip to content

Commit

Permalink
Some prerelease steps were not ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
limzykenneth committed Jan 20, 2024
1 parent 858b6e5 commit 97b1bdb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
valueFile: website/src/data/data.yml
Expand All @@ -96,23 +99,27 @@ jobs:
commitChange: false
updateFile: true
- name: Update version.json on website repo
if: ${{ steps.semver.outputs.is-prerelease != 'true' }}
uses: restackio/[email protected]
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"
git config --local user.name "github-actions[bot]"
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/[email protected]
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
Expand All @@ -130,17 +137,20 @@ 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"
git config --local user.name "github-actions[bot]"
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/[email protected]
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
Expand Down

0 comments on commit 97b1bdb

Please sign in to comment.