release 0.4.0 (#165) #306
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
# Generates a source tarball, including depedencies, and uploads it to GitHub releases | |
name: release | |
on: push | |
jobs: | |
sdist: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Make source tarball | |
run: | | |
set -x | |
mkdir -p .cargo | |
touch sdist.tar.gz | |
cargo vendor --locked >> .cargo/config.toml | |
version=$(cargo pkgid -p rpmoci | cut -d '#' -f 2) | |
tar --transform="s+^\./+rpmoci-$version/+" --exclude='.git' --exclude='target' --exclude='sdist.tar.gz' -czvf sdist.tar.gz . | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
sdist.tar.gz |