Skip to content

Commit

Permalink
feat(workflow): Add new workflow for Releases (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALofthou committed Jul 12, 2023
1 parent ea51800 commit f1848be
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "Package Release Components"

on:
release:
types:
- "published"

permissions:
contents: write

jobs:
release:
name: "Release"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout the repository"
uses: "actions/checkout@v3.5.3"

- name: "Archive Tools"
shell: "bash"
run: tar -cf Tools.tar.xz --use-compress-program='xz -9' ./Tools

- name: "Archive Examples"
shell: "bash"
run: tar -cf Examples.tar.xz --use-compress-program='xz -9' ./Examples

- name: "Archive Libraries"
shell: "bash"
run: tar -cf Libraries.tar.xz --use-compress-program='xz -9' ./Libraries

- name: "Upload the achives to the release"
uses: softprops/action-gh-release@v0.1.15
with:
files: |
${{ github.workspace }}/Tools.tar.xz
${{ github.workspace }}/Examples.tar.xz
${{ github.workspace }}/Libraries.tar.xz

0 comments on commit f1848be

Please sign in to comment.