Skip to content

Commit 7f7e9b4

Browse files
committed
Create a release
1 parent 74dcf3a commit 7f7e9b4

File tree

2 files changed

+29
-19
lines changed

2 files changed

+29
-19
lines changed

.github/workflows/docker.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: Create and publish a Docker image
22

33
on:
4-
push: []
4+
push:
5+
tags:
6+
- v*
7+
workflow_dispatch:
58

69
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
710
env:

.github/workflows/release.yaml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
name: build release
2-
on: [push]
1+
name: Build and publish release
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
workflow_dispatch:
37

48
jobs:
59
build_release:
@@ -27,7 +31,6 @@ jobs:
2731
with:
2832
key: "release-lto"
2933
- run: cargo build --target=${{ matrix.target }} --profile=release-lto
30-
- run: mkdir ${{ matrix.target }}
3134
- run: |
3235
if [[ "${{ matrix.os }}" == "windows-latest" ]]
3336
then
@@ -41,18 +44,22 @@ jobs:
4144
name: ${{ matrix.target}}.${{ matrix.suffix }}
4245
path: ${{ matrix.target}}.${{ matrix.suffix }}
4346
retention-days: 1
44-
#
45-
# create_release:
46-
# name: Release
47-
# runs-on: ubuntu-latest
48-
# needs:
49-
# - build_release
50-
# steps:
51-
# - uses: actions/download-artifact@v4
52-
# - name: Publish
53-
# uses: softprops/action-gh-release@v1
54-
# with:
55-
# draft: false
56-
# files: |
57-
# **/*.tar.gz
58-
# **/*.zip
47+
48+
create_release:
49+
name: Release
50+
runs-on: ubuntu-latest
51+
needs:
52+
- build_release
53+
54+
permissions:
55+
contents: write
56+
57+
steps:
58+
- uses: actions/download-artifact@v4
59+
- name: Publish
60+
uses: softprops/action-gh-release@v2
61+
with:
62+
draft: false
63+
files: |
64+
**/*.tar.gz
65+
**/*.zip

0 commit comments

Comments
 (0)