-
Notifications
You must be signed in to change notification settings - Fork 34
40 lines (35 loc) · 1.13 KB
/
create_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: OCK Nightly
on:
pull_request:
paths:
- '.github/workflows/create_release.yml'
jobs:
ock_nightly:
name: OCK Nightly Build Upload
runs-on: ubuntu-22.04
needs: [run_riscv_m1_nightly_package]
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: riscv-build
path: ock_install.tar.gz
- name: Compute tag
id: tag
run: |
if [ "${{ github.event_name == 'schedule' }}" == "true" ]; then
echo "TAG=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
else
# TODO: Use date of the commit?
echo "TAG=$(date +'%Y-%m-%d')-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT"
fi
- name: Upload binaries
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
files:
ock_install.tar.gz
tag_name: nightly-${{ steps.tag.outputs.TAG }}
name: OCK daily ${{ steps.tag.outputs.TAG }}
prerelease: true
body: "Daily build ${{ steps.tag.outputs.TAG }}"
target_commitish: ${{ github.sha }}