Skip to content

Commit

Permalink
feat: setup semantic release and crates.io publishing ( PROOF-624 ) (#2)
Browse files Browse the repository at this point in the history
* feat: add package.json file

* ci: add build script to repo

* feat: add semantic-release workflow to repo

* docs: add CONTRIBUTING.md file

* chore: drop unnecessary folder from release

* ci: fix typo

* ci: add docs/ folder to zip
  • Loading branch information
joe-stifler authored Sep 18, 2023
1 parent 54889bb commit a8e77ae
Show file tree
Hide file tree
Showing 4 changed files with 493 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
branches:
- main

jobs:
test-check-lint:
uses: ./.github/workflows/test-check-lint.yml

release:
name: Build Publish Crate - Linux-x86_64
runs-on: ubuntu-latest
needs: [test-check-lint]
environment: deploy #!! DO NOT CHANGE THIS LINE !! #
container:
image: spaceandtimelabs/blitzar:12.2.0-cuda-1.71.1-rust-0
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}

- run: git config --global --add safe.directory $(realpath .)

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Semantic Release
run: |
npm install semantic-release
npx semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
Loading

0 comments on commit a8e77ae

Please sign in to comment.