test #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TODO: remove this file | |
name: test-release | |
on: | |
push: | |
tags: | |
- 'test-release-v*' | |
jobs: | |
release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- run: git push origin ${{ github.ref }} ${{ github.sha }} | |
# - name: extract version from tag | |
# id: extract_version | |
# run: | | |
# VERSION=$( echo ${{ github.ref_name }} | grep -oP 'test-release-v\K.*' ) | |
# echo "VERSION=$VERSION" >> $GITHUB_OUTPUT | |
# - name: print it | |
# run: echo ${{ steps.extract_version.outputs.VERSION }} | |
# - name: cargo login | |
# run: cargo login ${{ secrets.CRATES_IO_TOKEN }} | |
# - name: install cargo-binstall | |
# uses: cargo-bins/[email protected] | |
# - name: install cargo-release | |
# run: | | |
# cargo binstall cargo-release --no-confirm | |
# - name: Auth | |
# run: | | |
# git config --global user.name "auto-build" | |
# git config --global user.email "[email protected]" | |
# - name: cargo release | |
# run: | | |
# cargo release ${{ steps.extract_version.outputs.VERSION }} --exclude cargo-altvup --no-confirm --execute | |
# - name: create archive | |
# # seems like --exclude-from doesnt support all syntax of gitignore but it doesnt really matter | |
# run: | | |
# cd .. | |
# tar --exclude-caches --exclude-vcs --exclude-from=./altv-rust/.gitignore --exclude=*.bat --exclude *.sh --directory ./altv-rust -czvf source.tar.gz . | |
# cp source.tar.gz ./altv-rust/source.tar.gz | |
# - uses: ncipollo/release-action@v1 | |
# id: create_release | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# - name: upload archive | |
# uses: svenstaro/upload-release-action@v2 | |
# with: | |
# repo_token: ${{ secrets.GITHUB_TOKEN }} | |
# asset_name: source.tar.gz | |
# file: source.tar.gz | |
# tag: ${{ github.ref }} | |
# overwrite: true |