-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some prerelease steps were not ignored
- Loading branch information
1 parent
858b6e5
commit 97b1bdb
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|
@@ -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 }} | ||
|