Files
nextcloud-samba-sync/.gitea/workflows/release.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 20: cannot unmarshal !!map into []*model.Step
bartfaik04 e95d9bb552
All checks were successful
Build / build (push) Successful in 11s
Change ubuntu image to node
2025-06-02 16:34:25 +02:00

50 lines
1.0 KiB
YAML

name: Release
on:
push:
tags:
- v.*
defaults:
run:
shell: bash
working-directory: .
jobs:
release:
runs-on: ubuntu
needs: build
container:
image: node:20
steps:
steps:
- name: Install build tools
run: apt update && apt install -y zip
- name: Download compiled binary
uses: actions/download-artifact@v3
with:
name: ncsambawatcher
- name: Copy files
run: |
mkdir build
cp ncsambawatcher build/ncsambawatcher
cp configs/ncsambawatcher.config.default build/ncsambawatcher.config
cp init.sh config/init.sh
- name: Create release zip
run: |
cd build
zip ../ncsambawatcher.zip ./*
- name: Publish release
uses: actions/create-release@v1
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
files: |
ncsambawatcher.zip