Skip to content

Commit

Permalink
Initial action
Browse files Browse the repository at this point in the history
  • Loading branch information
tewlwolow authored Jan 16, 2023
1 parent a5b5f71 commit 128d451
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Package AURA
on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
env:
ARCHIVE_NAME: AURA_${{github.ref_name}}
steps:

- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 50

- name: Prune Files
run: |
rm -f README.md
rm -f .gitignore
mv .git ..
mv .github ..
- name: Build Archive
uses: edgarrc/action-7z@v1
with:
args: 7z a ${{env.ARCHIVE_NAME}}.7z

- name: Restore Git Files
run: |
mv ../.git .
mv ../.github .
- name: Create Release
uses: notlmn/release-with-changelog@v3
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 128d451

Please sign in to comment.
  翻译: