-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1.03 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
with:
tag_name: ${{ env.NOW }}
files: |
*.json
# draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}