name: Publish Cargo package run-name: ${{ github.actor }} is building ${{ github.repository }} on: push: tags: - v** jobs: Publish-Cargo: runs-on: ubuntu-latest steps: - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "This job is now running on a ${{ runner.os }}." - run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Install minimal Rust uses: https://github.com/actions-rs/toolchain@v1 with: toolchain: stable profile: minimal - name: Check out repository code uses: actions/checkout@v3 - name: Publish uses: https://github.com/actions-rs/cargo@v1 with: command: publish args: --index=https://git.raptorpond.com/henine/_cargo-index.git --token "${{ secrets.PACKAGE_TOKEN }}"