Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Nov 16, 2023
1 parent 7ceb13f commit c9a49bf
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:

matrix:
config:
- name: macOS
os: macos-latest
- name: Ubuntu
os: ubuntu-latest
# - name: macOS
# os: macos-latest
# - name: Ubuntu
# os: ubuntu-latest
- name: WebAssembly
os: ubuntu-latest
- name: Windows
Expand Down Expand Up @@ -100,7 +100,6 @@ jobs:
# working-directory: build

- name: Create Artifacts Directory
working-directory: build
run: mkdir artifacts

- name: Compress Artifacts
Expand All @@ -110,7 +109,7 @@ jobs:
chmod +x carimbo
tar -czvf macOS.tar.gz --mode='a+rwx' carimbo
rm -rf carimbo
mv macOS.tar.gz artifacts
mv macOS.tar.gz ../artifacts
- name: Compress Artifacts
if: matrix.config.name == 'Ubuntu'
Expand All @@ -119,31 +118,33 @@ jobs:
chmod +x carimbo
tar -czvf Ubuntu.tar.gz --mode='a+rwx' carimbo
rm -rf carimbo
mv Ubuntu.tar.gz artifacts
mv Ubuntu.tar.gz ../artifacts
- name: Compress Artifacts
if: matrix.config.name == 'WebAssembly'
working-directory: build
run: |
zip -jr WebAssembly.zip carimbo.wasm carimbo.js
rm -rf carimbo.wasm carimbo.js
mv WebAssembly.zip artifacts
mv WebAssembly.zip ../artifacts
- name: Compress Artifacts
if: matrix.config.name == 'Windows'
working-directory: build
run: |
zip -jr Windows.zip carimbo.exe
rm -rf carimbo.exe
mv Windows.zip artifacts
mv Windows.zip ../artifacts
- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
if-no-files-found: error
name: ${{ matrix.config.name }}
path: build/artifacts
tag_name: ${{ github.event.inputs.tagName }}
prerelease: ${{ github.events.inputs.prerelease }}
files: artifacts/*

# - name: Upload Artifact
# uses: actions/upload-artifact@v3
Expand Down

0 comments on commit c9a49bf

Please sign in to comment.