You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/01/03 14:57:35 UTC
[buildstream] 15/18: .github/workflows/release.yml: Add release.yml
workflow for uploading releases
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/test-workflows
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 51acea3028bef5b947134fd92e5fb3d502264d7f
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Fri Oct 9 15:36:41 2020 +0900
.github/workflows/release.yml: Add release.yml workflow for uploading releases
---
.github/workflows/release.yml | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..1153eab
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,40 @@
+name: Upload Release Asset
+
+env:
+ CI_IMAGE: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:32-master-177137613
+ BST_FORCE_SESSION_REBUILD: 1
+
+on:
+ push:
+ tags:
+ - '*.*.*'
+
+jobs:
+ build:
+ name: Upload Release Asset
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v2
+ # BuildStream requires tags to be able to find its version.
+ with:
+ fetch-depth: 0
+
+ - name: Build documentation
+ run: |
+ docker run \
+ --privileged \
+ --device /dev/fuse \
+ --env BST_FORCE_SESSION_REBUILD \
+ --volume /home/runner/work:/__w \
+ --workdir /__w/buildstream/buildstream \
+ $CI_IMAGE \
+ tox -e docs
+ tar -C doc/build/html -zcf docs.tgz .
+
+ - name: Upload release assets
+ run: |
+ tag_name="${GITHUB_REF##*/}"
+ hub release create -a "docs.tgz" -m "$tag_name" "$tag_name"
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}