Skip to content

files-windows-support: switched files plugin to rust #22

files-windows-support: switched files plugin to rust

files-windows-support: switched files plugin to rust #22

Workflow file for this run

name: release
on:
push:
branches:
- main
# TODO: remove
- files-windows-support
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Determine New Version
id: version
uses: zwaldowski/semver-release-action@v3
with:
dry_run: true
bump: minor
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Set Env
env:
TAG: v${{ steps.version.outputs.version }}
run: echo "TAG=${TAG}" >> $GITHUB_ENV
- name: Install nk
run: |
# install nk
curl -fsSL 'https://raw.githubusercontent.com/ciiqr/nk/HEAD/install.sh' | bash
# add to path
echo "${HOME}/.nk/bin" >> $GITHUB_PATH
# TODO: build rust plugins (for all targets)
- name: Build assets
env:
REPOSITORY_NAME: ${{ github.event.repository.name }}
run: |
nk plugin pack \
--owner "$GITHUB_REPOSITORY_OWNER" \
--repo "$REPOSITORY_NAME" \
--version "$TAG" \
./*/plugin.yml
# TODO: DEBUGGING
# - name: Create Release
# env:
# GITHUB_USER: ${{ github.repository_owner }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# gh release create \
# --title "$TAG" \
# --notes '' \
# "$TAG" \
# manifest.yml *.tar.gz