Skip to content

Fix github actions

Fix github actions #7

Workflow file for this run

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