summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArshia001 <Arshia001@users.noreply.github.com>2024-06-20 21:10:48 +0330
committerGitHub <noreply@github.com>2024-06-20 21:10:48 +0330
commit65a9a3c3514866515dfaf1189dbffbacd7040fbd (patch)
treed91b31ac9ee5697ff1d61c6914c4394ec88ebad2
parent591a7bbfe70883b54ad1aba227ad6507abd12851 (diff)
Add release CI pipeline (#41)v2024-06-20.1
-rw-r--r--.github/workflows/build_cxx_sysroot.yml6
-rw-r--r--.github/workflows/release.yml38
2 files changed, 41 insertions, 3 deletions
diff --git a/.github/workflows/build_cxx_sysroot.yml b/.github/workflows/build_cxx_sysroot.yml
index 7c63865..a735770 100644
--- a/.github/workflows/build_cxx_sysroot.yml
+++ b/.github/workflows/build_cxx_sysroot.yml
@@ -2,9 +2,10 @@ name: Build C/C++ Sysroot
on:
push:
- branches: [ "main" ]
+ branches: ["main"]
pull_request:
- branches: [ "main" ]
+ branches: ["main"]
+ workflow_call:
permissions:
contents: read
@@ -88,7 +89,6 @@ jobs:
TOOLCHAIN=/opt/wasix-sysroot/clang-wasix.cmake_toolchain ./test/wasix/run_tests.sh
- name: Upload sysroot
- if: ${{ !env.ACT }}
uses: actions/upload-artifact@v2
with:
name: wasix-sysroot
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..2fed028
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,38 @@
+name: Release
+
+on:
+ push:
+ tags:
+ - v*
+
+permissions:
+ contents: write
+ packages: write
+ checks: write
+
+jobs:
+ build:
+ uses: ./.github/workflows/build_cxx_sysroot.yml
+
+ release:
+ runs-on: ubuntu-latest
+ needs: build
+ steps:
+ - name: Download artifacts
+ uses: actions/download-artifact@v3
+ with:
+ name: wasix-sysroot
+ path: wasix-sysroot
+
+ - name: Create published artifacts
+ run: |
+ mkdir publish
+ tar -czf publish/sysroot.tar.gz wasix-sysroot
+
+ - name: Publish
+ uses: "marvinpinto/action-automatic-releases@latest"
+ with:
+ repo_token: "${{ secrets.GITHUB_TOKEN }}"
+ draft: true
+ automatic_release_tag: "${{ github.ref_name }}"
+ files: publish/*