-
-
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.
Update and rename release.yml to release-workflow.yml
To sync up with the new website repo build process
- Loading branch information
1 parent
9352131
commit 6781c1d
Showing
1 changed file
with
37 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -73,8 +73,44 @@ jobs: | |
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
|
||
# 4. Update p5.js website | ||
- name: Clone p5.js website | ||
if: ${{ steps.semver.outputs.is-prerelease != 'true' }} | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: processing/p5.js-website | ||
path: website | ||
fetch-depth: 0 | ||
token: ${{ secrets.ACCESS_TOKEN }} | ||
- name: Updated website files | ||
if: ${{ steps.semver.outputs.is-prerelease != 'true' }} | ||
run: | | ||
cd website | ||
npm install | ||
npm run build:contributor-docs | ||
npm run build:contributors | ||
npm run build:reference | ||
npm run build:search | ||
npm run build:p5-version | ||
- 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 }} | ||
branch: main | ||
directory: website/ | ||
repository: processing/p5.js-website | ||
|
||
# 4. Update Bower files | ||
# 5. Update Bower files | ||
- name: Checkout Bower repo | ||
if: ${{ steps.semver.outputs.is-prerelease != 'true' }} | ||
uses: actions/checkout@v3 | ||
|