Update README.md #2
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: Compile summary file(s) | |
on: [push] | |
jobs: | |
compile_files: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v2 | |
- name: Set up environment | |
run: | | |
sudo apt-get update && \ | |
sudo apt-get install -y python3 | |
- name: Run data building script | |
run: | | |
python3 compile.py | |
- name: Generate release tag | |
id: tag | |
run: | | |
echo "::set-output name=release_tag::$(date +"%Y-%m-%d_%H-%M-%S")" | |
- name: Publish release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.tag.outputs.release_tag }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload REFS.json to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: REFS.json | |
asset_name: REFS.json | |
tag: ${{ steps.tag.outputs.release_tag }} | |
overwrite: true |