Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Logiase committed Dec 15, 2024
1 parent 832542f commit 447ecd1
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
name: Rust
name: Push nightly branch

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo run --release -- crate svds transforms output
- uses: actions/checkout@v4
- name: Build
run: cargo run --release -- crate svds transforms output
- name: Push nightly
working-directory: ./output
permissions:
contents: write
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

0 comments on commit 447ecd1

Please sign in to comment.