Skip to content

Commit

Permalink
publish-crates
Browse files Browse the repository at this point in the history
  • Loading branch information
Vardominator committed Aug 8, 2024
1 parent 7a86f74 commit 48861cb
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@ name: CI

on:
push:
branches: ["main"]
branches: ["main", "publish-crates"]
pull_request:
branches: ["main"]
branches: ["main", "publish-crates"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Build
run: cargo build --verbose
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: "1.21"
- name: Build
run: cargo build --verbose
- name: Publish to crates.io
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 comments on commit 48861cb

Please sign in to comment.