summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-26 11:10:26 +0800
committerruki <[email protected]>2020-09-26 11:10:26 +0800
commit1992ea4fecf4fcc50c55d5e41effdb8641c6d731 (patch)
tree9bc72d4c9cac6668a8dfe28050a674ecc75fc75f /.github/workflows
parentf8267d32bb32ba9cf1463c58e8849c94c5226f16 (diff)
add release for fedora ci
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/fedora.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/fedora.yml b/.github/workflows/fedora.yml
index 220e16914..8e5e38129 100644
--- a/.github/workflows/fedora.yml
+++ b/.github/workflows/fedora.yml
@@ -28,6 +28,8 @@ jobs:
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: local#../xmake-source
+ - uses: olegtarasov/get-tag@v2
+ id: tagName
# build artifacts
- name: artifact
@@ -48,6 +50,30 @@ jobs:
name: xmake-latest.fc32.noarch.rpm
path: ~/rpmbuild/RPMS/noarch/xmake-*.fc32.noarch.rpm
+ # publish release
+ - name: publish
+ if: github.event.action == 'published'
+ uses: actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ github.event.release.upload_url }}
+ asset_path: ~/rpmbuild/SRPMS/xmake-*.fc32.src.rpm
+ asset_name: xmake-${{ steps.tagName.outputs.tag }}.fc32.src.rpm
+ asset_content_type: application/zip
+
+ # publish release
+ - name: publish
+ if: github.event.action == 'published'
+ uses: actions/[email protected]
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ github.event.release.upload_url }}
+ asset_path: ./scripts/rpmbuild/SPECS/xmake.spec
+ asset_name: xmake-${{ steps.tagName.outputs.tag }}.fc32.spec
+ asset_content_type: application/zip
+
# tests
- name: tests
env: