generated from nginxinc/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and attach acme.js to release (#55)
* Github action that runs when a release is created that builds acme.js and attaches it to the release. * add instructions for downloading release * simplify with gh command line; thanks @ryepup! * README.md refinements
- Loading branch information
1 parent
d827cd6
commit 0168d36
Showing
2 changed files
with
31 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Upload acme.js to release page | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
name: Build release artifact | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build dist/acme.js | ||
run: make build | ||
|
||
- name: Upload acme.js to release | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: gh release upload "${{ github.event.release.tag_name }}" ./dist/acme.js |
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