Skip to content

Commit

Permalink
Create package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaakma committed Jun 3, 2022
1 parent 1198b74 commit 4cbafeb
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Package Go Fletch
on:
push:
tags:
- 'v*'
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
env:
ARCHIVE_NAME: GoFletch
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 50

- name: Build Project
uses: edgarrc/action-7z@v1
with:
args: 7z a ${{env.ARCHIVE_NAME}}.7z "Data Files"

- name: Create Release
uses: notlmn/release-with-changelog@v2
with:
header: '### Changelog'
include-hash: true
include-range: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload to Github
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{env.ARCHIVE_NAME}}.7z

0 comments on commit 4cbafeb

Please sign in to comment.