Skip to content

Commit

Permalink
👷 Release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fTrestour committed Oct 26, 2024
1 parent ccb6e2b commit 4423ff8
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/test.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test the build
name: Test, build and release

on:
push:
Expand Down Expand Up @@ -29,3 +29,18 @@ jobs:

- name: Build the project
run: bun run build

- name: Archive dist folder
if: github.ref == 'refs/heads/main'
run: |
tar -czf site.tar.gz -C dist .
zip -r site.zip dist
- name: Release
if: github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v2
with:
tag_name: "${{ github.run_id }}"
files: |
site.tar.gz
site.zip

0 comments on commit 4423ff8

Please sign in to comment.