Skip to content

Commit

Permalink
publish pre-release OCK
Browse files Browse the repository at this point in the history
  • Loading branch information
MaryaSharf committed Jan 3, 2024
1 parent 131b366 commit df180f2
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/create_publish_artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build and Package
on:
pull_request:
paths:
- '.github/workflows/create_publish_artifacts.yml'
schedule:
- cron: '0 0 * * *' # Runs the workflow at midnight every day
# Allows you to run this workflow manually from the Actions tab
Expand Down Expand Up @@ -63,3 +66,36 @@ jobs:
with:
name: riscv-build
path: ock_build.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_build.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: Create Nightly OCK pre-release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
files:
ock_build.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 }}

0 comments on commit df180f2

Please sign in to comment.