Skip to content

Commit

Permalink
Run deploy on all pushes to main with date as tag
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Feb 8, 2024
1 parent ea95021 commit 95a8241
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Build updates.json file
# Run this workflow on every push or pull request
on:
push:
branches:
- main

# Docs on sharing data between jobs (between VMs): https://help.github.com/en/actions/configuring-and-managing-workflows/persisting-workflow-data-using-artifacts#passing-data-between-jobs-in-a-workflow
jobs:
Expand All @@ -19,10 +21,14 @@ jobs:
- name: Run Build and Deploy Script
run: python build.py

- name: Set current date as env variable
run: echo "NOW=$(date +'%Y-%m-%d_%H-%M-%S')" >> $GITHUB_ENV

- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/') # only publish tagged commits
#if: startsWith(github.ref, 'refs/tags/') # only publish tagged commits
with:
tag_name: ${{ env.var_name }}
files: |
*.json
# draft: true
Expand Down

0 comments on commit 95a8241

Please sign in to comment.