Skip to content

Merge branch 'release/ffi-0.23.0' #22

Merge branch 'release/ffi-0.23.0'

Merge branch 'release/ffi-0.23.0' #22

Workflow file for this run

---
name: Upload release
on:
push:
tags:
- "*"
workflow_dispatch:
inputs:
tag:
description: "Git tag"
required: true
env:
TAG: ${{ github.event.inputs.tag || github.ref }}
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_AGRIAN_REGISTRY_INDEX: ${{ secrets.AGRIAN_CRATES_REGISTRY }}
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup SSH
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.TELUS_AGCG_MACHINE_USER_KEY }}
with:

Check failure on line 30 in .github/workflows/upload-release.yml

View workflow run for this annotation

GitHub Actions / Upload release

Invalid workflow file

The workflow is not valid. .github/workflows/upload-release.yml (Line: 30, Col: 9): 'with' is already defined
ref: ${{ env.TAG }}
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build wise_units-ffi
run: cargo build --release --package wise_units-ffi
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG }}
release_name: Release ${{ env.TAG }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./target/release/libwise_units_ffi.so
asset_name: libwise_units_ffi-linux-amd64.so
asset_content_type: application/octet-stream