Skip to content

Commit

Permalink
chore: archive dist/ on build
Browse files Browse the repository at this point in the history
  • Loading branch information
rokbar-nosto committed Dec 14, 2023
1 parent 550f93a commit 7da14dc
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ jobs:
- name: Test project
run: npm run test

- name: Compress dist/ directory to targets.tar
run: tar cf targets.tar dist

- name: Upload targets.tar
uses: actions/upload-artifact@v3
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main')
with:
name: target-${{ runner.os }}
path: targets.tar
retention-days: 1

release:
needs: build
runs-on: ubuntu-latest
Expand All @@ -45,6 +56,16 @@ jobs:
- name: Install dependencies
run: npm install

- name: Download target directories
uses: actions/download-artifact@v3
with:
name: target-${{ runner.os }}

- name: Inflate target directories
run: |
tar xf targets.tar
rm targets.tar
- name: Publish project
uses: cycjimmy/semantic-release-action@v4
id: semantic
Expand Down

0 comments on commit 7da14dc

Please sign in to comment.