Fix github actions #7
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: Push nightly branch | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: cargo run --release -- crate svds transforms output | |
- name: Push nightly | |
working-directory: ./output | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git init | |
git config user.name "Github Actions" | |
git config user.email "actions@github.com" | |
git branch -m nightly | |
git remote add origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }} | |
git add . | |
git commit -m "nightly" | |
git push -f -u origin nightly |