Compare commits
No commits in common. "7e047626dfb47fdef6dea6e3f937cf895b110853" and "df914e68f21cf93edad4b051230d6ed97128c611" have entirely different histories.
7e047626df
...
df914e68f2
3 changed files with 23 additions and 38 deletions
57
.github/workflows/release.yaml
vendored
57
.github/workflows/release.yaml
vendored
|
|
@ -13,43 +13,27 @@ on:
|
||||||
tags:
|
tags:
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create_release:
|
create_release:
|
||||||
name: Create release
|
name: Create release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Get the release version
|
|
||||||
if: env.VERSION == ''
|
|
||||||
run: echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Show the version
|
|
||||||
run: |
|
|
||||||
echo "version is: $VERSION"
|
|
||||||
|
|
||||||
- name: Check that tag version and Cargo.toml version are the same
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if ! grep -q "version = \"$VERSION\"" Cargo.toml; then
|
|
||||||
echo "version does not match Cargo.toml" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Create GitHub release
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: gh release create $VERSION --draft --verify-tag --title $VERSION
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ env.VERSION }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
|
||||||
build_release:
|
steps:
|
||||||
name: Build all the stuff
|
- name: Create GitHub release
|
||||||
|
id: create_release
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
release_name: Release ${{ github.ref }}
|
||||||
|
draft: true
|
||||||
|
|
||||||
|
release_assets:
|
||||||
|
name: Release assets
|
||||||
needs: ['create_release'] # We need to know the upload URL
|
needs: ['create_release'] # We need to know the upload URL
|
||||||
runs-on: ${{ matrix.os }} # We run many different builds
|
runs-on: ${{ matrix.os }} # We run many different builds
|
||||||
env:
|
env:
|
||||||
|
|
@ -64,7 +48,6 @@ jobs:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
matrix:
|
||||||
build: ['linux', 'macos', 'arm-macos', 'windows']
|
build: ['linux', 'macos', 'arm-macos', 'windows']
|
||||||
include:
|
include:
|
||||||
|
|
@ -131,9 +114,11 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload release archive
|
- name: Upload release archive
|
||||||
|
uses: actions/upload-release-asset@v1.0.2
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
shell: bash
|
with:
|
||||||
run: |
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
||||||
version="${{ needs.create_release.outputs.version }}"
|
asset_name: ${{ env.ASSET }}
|
||||||
gh release upload "$version" ${{ env.ASSET }}
|
asset_path: ${{ env.ASSET }}
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
|
|
||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -320,7 +320,7 @@ checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fwd"
|
name = "fwd"
|
||||||
version = "0.9.2"
|
version = "0.9.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"assert_matches",
|
"assert_matches",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "fwd"
|
name = "fwd"
|
||||||
version = "0.9.2"
|
version = "0.9.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
description = "Automatically forward ports to a remote server over ssh"
|
description = "Automatically forward ports to a remote server over ssh"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue