vyxal3-release #58
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: Create release from tag | |
on: | |
repository_dispatch: | |
types: [vyxal3-release] | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: write | |
id-token: write | |
# Allow one concurrent deployment | |
concurrency: | |
group: "release" | |
cancel-in-progress: true | |
jobs: | |
# Single deploy job since we're just deploying | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
#- name: Set up JDK 17 | |
# uses: actions/setup-java@v3 | |
# with: | |
# java-version: "17" | |
# distribution: "adopt" | |
- uses: actions/checkout@v4 | |
with: | |
ref: hub | |
- uses: olegtarasov/[email protected] | |
id: tagName | |
- name: Echo the thing | |
run: echo "${{toJSON(github.event.client_payload.files)}} | |
- name: Download files to release folder | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install requests | |
mkdir ${{github.event.client_payload.tag}} | |
git clone https://github.com/Vyxal/vyxal.github.io.git ${{github.event.client_payload.tag}} | |
python file_funcs.py "${{toJSON(github.event.client_payload.files)}}" ${{github.event.client_payload.tag}} | |
cd ${{github.event.client_payload.tag}} | |
rm -rfd .git | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |