Nightly Build #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Build | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: '*/20 * * * *' | |
jobs: | |
date: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create a tag for the archive | |
run: echo "TAG=$(date +%F)" >> $GITHUB_OUTPUT | |
id: tag | |
- name: Starting the nightly build for ${{ steps.tag.outputs.TAG }} | |
run: echo "The tag is $TAG" | |
- name: Check out the code | |
uses: actions/checkout@v4 | |
- name: Create the artifact | |
run: tar -cvf nightly-$TAG.tar ./* | |
- name: Upload the artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: nightly-$TAG.tar | |
path: nightly-$TAG.tar | |