mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
WIP: create a release in response to the tag
This commit is contained in:
parent
20c361ffc5
commit
697ac7a062
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@ -1,7 +1,7 @@
|
||||
name: "Build and attach binary to release"
|
||||
name: "Create draft release with binaries after tag"
|
||||
on:
|
||||
release:
|
||||
types: ["created"]
|
||||
push:
|
||||
tags: ["v*"]
|
||||
permissions:
|
||||
contents: write # to upload the binaries to the release
|
||||
jobs:
|
||||
@ -17,11 +17,24 @@ jobs:
|
||||
with:
|
||||
go-version: "1.20"
|
||||
- run: mkdir build
|
||||
- run: go build -o build/syncv3_linux_${{ matrix.arch }} ./cmd/syncv3
|
||||
- run: go build -o build/syncv3_${{ matrix.os }}_${{ matrix.arch }} ./cmd/syncv3
|
||||
env:
|
||||
GOOS: ${{ matrix.os }}
|
||||
GOARCH: ${{ matrix.arch }}
|
||||
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
|
||||
- name: "Upload binary as artifact"
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
files: build/syncv3_linux_${{ matrix.arch }}
|
||||
name: ${{ matrix.os }}-${{ matrix.arch }}
|
||||
path: build/syncv3_${{ matrix.os }}_${{ matrix.arch }}
|
||||
|
||||
create-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Fetch all binaries"
|
||||
uses: actions/download-artifact@v3
|
||||
- name: "Create release"
|
||||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
|
||||
with:
|
||||
files: build/*
|
||||
draft: True
|
||||
fail_on_unmatched_files: true
|
0
RELEASING.md
Normal file
0
RELEASING.md
Normal file
Loading…
x
Reference in New Issue
Block a user