Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MaryaSharf committed Dec 21, 2023
1 parent bfef5af commit ef4049d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 40 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/create_publish_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,35 @@ jobs:
name: riscv-build
path: ock_install.tar.gz

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 }}
40 changes: 0 additions & 40 deletions .github/workflows/create_release.yml

This file was deleted.

0 comments on commit ef4049d

Please sign in to comment.