Skip to content

Merge pull request #2 from jubako/ci #3

Merge pull request #2 from jubako/ci

Merge pull request #2 from jubako/ci #3

Workflow file for this run

name: Publication
on:
release:
types: [released]
env:
CARGO_TERM_COLOR: always
jobs:
do_publication:
name: Publish on crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download libzim
run: |
VERSION="9.2.1"

Check failure on line 20 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
ARCHIVE_NAME="libzim_linux-x86_64-${VERSION}"
wget "https://download.openzim.org/release/libzim/${ARCHIVE_NAME}.tar.gz"
tar xf ${ARCHIVE_NAME}.tar.gz
ARCHIVE_PATH=$(pwd)/${ARCHIVE_NAME}
LIBZIM_LIB=${ARCHIVE_PATH}/lib/x86_64-linux-gnu
echo "LIBZIM_LIB=$LIBZIM_LIB" >> $GITHUB_ENV
echo "LIBZIM_INCLUDE=${ARCHIVE_PATH}/include" >> $GITHUB_ENV
- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo publish