Skip to content

Run deploy on all pushes to main with date as tag #9

Run deploy on all pushes to main with date as tag

Run deploy on all pushes to main with date as tag #9

Workflow file for this run

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:
json_build:
name: ubuntu build
runs-on: ubuntu-latest
permissions:
contents: write # needed to create a release
steps:
- name: Download Repository
uses: actions/checkout@v3
- 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
tag_name: ${{ env.var_name }}

Check failure on line 30 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build updates.json file

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 30, Col: 9): Unexpected value 'tag_name'
with:
files: |
*.json
# draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}