Skip to content

Commit

Permalink
Github action that runs when a release is created that builds acme.js…
Browse files Browse the repository at this point in the history
… and attaches it to the release.
  • Loading branch information
zsteinkamp committed Mar 26, 2024
1 parent d827cd6 commit 83d5d60
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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: Get release
id: get_release
uses: bruceadams/get-release@v1.3.2
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Build dist/acme.js
run: make build

- name: Upload acme.js to release
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./dist/acme.js
asset_name: acme.js
asset_content_type: text/javascript

0 comments on commit 83d5d60

Please sign in to comment.