Skip to content

Commit

Permalink
github: workflow: release
Browse files Browse the repository at this point in the history
  • Loading branch information
JPHutchins committed Mar 16, 2024
1 parent c4390a4 commit ef71ef3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
permissions:
contents: write

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Create SHA1 of envr.ps1
run: shasum envr.ps1 > sha1.sum

- name: Add envr.ps1 to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: envr.ps1
tag: ${{ github.ref }}

- name: Add SHA1 to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sha1.sum
tag: ${{ github.ref }}

0 comments on commit ef71ef3

Please sign in to comment.