Files
ttyd/.github/workflows/release.yml
debian-go 89fb69b480 workflow: update actions packages (#1316)
* Update checkout action version to v4.

* Update checkout action version to v4.

* Update checkout action version to v4.

* Update release.yml

* Update backend.yml

* Update frontend.yml

* bump actions/upload-artifact and actions/download-artifact to v4

* bump actions/setup-node to v4

* bump docker actions

---------

Co-authored-by: Shuanglei Tao <tsl0922@gmail.com>
2024-03-29 09:24:10 +08:00

29 lines
674 B
YAML

name: release
on:
push:
tags: ["*"]
jobs:
build:
uses: ./.github/workflows/backend.yml
publish:
needs: [build]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- run: |
mkdir build
for file in ttyd.*/*; do
target=$(echo $file | awk -F/ '{print $1}')
[[ $file == *.exe ]] && target="$target.exe"
mv $file build/$target
done
pushd build; sha256sum ttyd.* > SHA256SUMS; popd
- uses: ncipollo/release-action@v1
with:
artifacts: build/*
allowUpdates: true
draft: true