generated from jeswr/template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create bundled release on github pages
* chore: create bundled releases of eye * chore: version by folders * chore: create script to add latest folders * chore: add steps to move bundle to pages branch
- Loading branch information
Showing
6 changed files
with
779 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: "Deploy Bundled Release" | ||
|
||
on: | ||
create | ||
|
||
jobs: | ||
tagged-release: | ||
# Don't run on releases/tags/* which causes recursive behaviour | ||
if: startsWith(github.ref, 'refs/tags/') | ||
name: "Deploy Bundled Release" | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
- name: Create latest bundle and add to github pages | ||
run: | | ||
# Build the latest bundle | ||
npm ci | ||
npm run bundle:webpack -- --name=${{ github.ref_name }} | ||
npm run bundle:latest -- --name=${{ github.ref_name }} | ||
# Configure Git | ||
git config --global user.name 'Jesse Wright' | ||
git config --global user.email '63333554+jeswr@users.noreply.github.com' | ||
# Move the latest bundle changes onto the pages branch and push | ||
git add -f bundle/ | ||
git fetch origin origin/pages | ||
git checkout -t origin/pages | ||
git commit -m "feat: add bundle for ${{ github.ref_name }}" | ||
git push -u origin pages | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
node_modules | ||
coverage | ||
dist | ||
bundle | ||
lib/eye.ts |
Oops, something went wrong.