This repository has been archived by the owner on May 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
24 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 |
---|---|---|
|
@@ -30,22 +30,22 @@ jobs: | |
- name: bundle files | ||
run: | | ||
zip -r plugins.zip build/ | ||
# - name: Checkout Cache | ||
# uses: actions/checkout@v2 | ||
# with: | ||
# repository: "withfig/core-backend" | ||
# token: ${{ secrets.FIG_BOT_TOKEN }} | ||
# ref: main | ||
# path: backend | ||
# - name: Add @latest to cache | ||
# run: | | ||
# cp ./plugins.zip ./backend/src/public/plugins.zip | ||
# cd backend | ||
# git config user.name "Build Action" | ||
# git config user.email "[email protected]" | ||
# git add . | ||
# git commit -m "Updates plugins to latest" | ||
# git push origin main | ||
- name: Checkout Cache | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: "withfig/core-backend" | ||
token: ${{ secrets.CACHE_SPECS_TOKEN }} | ||
ref: main | ||
path: backend | ||
- name: Add @latest to cache | ||
run: | | ||
cp ./plugins.zip ./backend/src/public/plugins.zip | ||
cd backend | ||
git config user.name "Build Action" | ||
git config user.email "[email protected]" | ||
git add . | ||
git commit -m "Updates plugins to latest" | ||
git push origin main | ||
- name: "Automated Version Bump" | ||
id: "version-bump" | ||
uses: "phips28/gh-action-bump-version@master" | ||
|
@@ -58,14 +58,7 @@ jobs: | |
with: | ||
access: public | ||
token: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
# Bump the version and create a git tag with the new version | ||
- name: Bump version and push tag | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
custom_tag: ${{ steps.version-bump.outputs.newTag }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# Create a new github release with the newly created plugins.zip file | ||
# Create a new github release with the newly created plugins.zip file | ||
- name: Release | ||
uses: softprops/action-gh-release@59c3b4891632ff9a897f99a91d7bc557467a3a22 | ||
with: | ||
|