Skip to content

Commit

Permalink
ci: build nightly releases for easy debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanChain committed Oct 13, 2024
1 parent 6730b47 commit caf58c3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Release
name: Build or Release

on:
push:
branches:
- main
tags:
- v**

Expand Down Expand Up @@ -32,13 +34,23 @@ jobs:
- name: Build
run: |
npm run build
mv build/*.xpi build/arXiv-workflow-for-zotero.xpi
- name: Create artifact
if: startsWith(github.ref, 'refs/heads/')
uses: actions/upload-artifact@v4
with:
name: arXiv-workflow-for-zotero
path: build/arXiv-workflow-for-zotero.xpi

- name: Release to GitHub
if: startsWith(github.ref, 'refs/tags/')
run: |
npm run release
sleep 1s
- name: Notify release
if: startsWith(github.ref, 'refs/tags/')
uses: apexskier/github-release-commenter@v1
continue-on-error: true
with:
Expand Down

0 comments on commit caf58c3

Please sign in to comment.