Skip to content

Commit

Permalink
add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrusha committed Aug 16, 2023
1 parent 1b0e1ae commit e78e3c7
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
on:
push:
tags:
- '*'
workflow_dispatch:

name: Publish

jobs:

publish-jwt:
name: Publish Snowflake JWT
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- run: cargo publish -p snowflake-jwt
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

publish-api:
name: Publish Snowflake API
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- run: cargo publish -p snowflake-api
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit e78e3c7

Please sign in to comment.