Skip to content

Commit 8faf648

Browse files
committed
draft
1 parent 3fa379c commit 8faf648

File tree

1 file changed

+32
-18
lines changed

1 file changed

+32
-18
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ on:
33
push:
44
branches:
55
- master
6+
- debian-package
67

78
jobs:
8-
9-
release:
10-
name: 'Publish Release'
9+
draft-release:
10+
name: 'Draft Release'
1111
runs-on: ubuntu-latest
12-
environment: production
1312
steps:
1413
- name: 'Check out code'
1514
uses: actions/checkout@v4
@@ -19,17 +18,32 @@ jobs:
1918
run: |
2019
set -x
2120
VERSION=v$(cat package/version)
22-
gh release create ${VERSION} --target ${{ github.sha }}
23-
- name: 'Update dependents'
24-
env:
25-
GITHUB_TOKEN: ${{ secrets.JENKINS_GITHUB_PAT }}
26-
run: |
27-
set -x
28-
version="${GITHUB_SHA}"
29-
curl --fail \
30-
-X POST \
31-
-H "Accept: application/vnd.github+json" \
32-
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
33-
-H "X-GitHub-Api-Version: 2022-11-28" \
34-
https://api.github.com/repos/runtimeverification/devops/dispatches \
35-
-d '{"event_type":"on-demand-test","client_payload":{"repo":"runtimeverification/llvm-backend","version":"'${version}'"}}'
21+
gh release create --draft ${VERSION} --target ${{ github.sha }}
22+
23+
# release:
24+
# name: 'Publish Release'
25+
# runs-on: ubuntu-latest
26+
# environment: production
27+
# steps:
28+
# - name: 'Check out code'
29+
# uses: actions/checkout@v4
30+
# - name: 'Make release'
31+
# env:
32+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
# run: |
34+
# set -x
35+
# VERSION=v$(cat package/version)
36+
# gh release create ${VERSION} --target ${{ github.sha }}
37+
# - name: 'Update dependents'
38+
# env:
39+
# GITHUB_TOKEN: ${{ secrets.JENKINS_GITHUB_PAT }}
40+
# run: |
41+
# set -x
42+
# version="${GITHUB_SHA}"
43+
# curl --fail \
44+
# -X POST \
45+
# -H "Accept: application/vnd.github+json" \
46+
# -H "Authorization: Bearer ${GITHUB_TOKEN}" \
47+
# -H "X-GitHub-Api-Version: 2022-11-28" \
48+
# https://api.github.com/repos/runtimeverification/devops/dispatches \
49+
# -d '{"event_type":"on-demand-test","client_payload":{"repo":"runtimeverification/llvm-backend","version":"'${version}'"}}'

0 commit comments

Comments
 (0)