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
|
- name: Build
|
||||||
run: npm run 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
|
- name: Create release zip
|
||||||
run: |
|
if: github.ref == 'refs/heads/main'
|
||||||
zip -r resume-latest.zip out/
|
run: zip -r resume-latest.zip out/
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: latest
|
tag_name: latest
|
||||||
|
|||||||
Reference in New Issue
Block a user