ci: use single job for build and release
Some checks failed
Build & Release / build (push) Failing after 1m5s
Some checks failed
Build & Release / build (push) Failing after 1m5s
- Gitea doesn't support upload-artifact/download-artifact - zip and release within the same job
This commit is contained in:
@@ -34,28 +34,12 @@ jobs:
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: resume-static
|
||||
path: out/
|
||||
|
||||
release:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- name: Download build artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: resume-static
|
||||
path: out/
|
||||
|
||||
- name: Create release zip
|
||||
run: |
|
||||
zip -r resume-latest.zip out/
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: zip -r resume-latest.zip out/
|
||||
|
||||
- name: Create Release
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: latest
|
||||
|
||||
Reference in New Issue
Block a user