name: Release
on:
push:
branches:
- main
jobs:
test-check-lint:
uses: ./.github/workflows/test-check-lint.yml
release:
permissions:
contents: write
issues: write
pull-requests: write
name: Build Publish Crate - Linux-x86_64
runs-on: ubuntu-latest
needs: [test-check-lint]
environment: deploy container:
image: rust:1.87
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git config --global --add safe.directory $(realpath .)
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Install zip
run: apt-get update && apt-get install -y zip
- name: Semantic Release
run: |
npm install semantic-release
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}