Skip to content

Commit 6211c85

Browse files
committed
just create draft release
1 parent a8e052d commit 6211c85

File tree

1 file changed

+83
-83
lines changed

1 file changed

+83
-83
lines changed

.github/workflows/build-and-release.yml

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -19,60 +19,60 @@ on:
1919
default: true
2020

2121
jobs:
22-
build:
23-
runs-on: ubuntu-latest
24-
outputs:
25-
rc-app-token: ${{ steps.app-token.outputs.token }}
26-
steps:
27-
- uses: actions/create-github-app-token@v1
28-
id: app-token
29-
with:
30-
app-id: ${{ vars.RELEASE_CONTROLLER_APP_ID }}
31-
private-key: ${{ secrets.RELEASE_CONTROLLER_APP_PRIVATE_KEY }}
32-
owner: ${{ github.repository_owner }}
33-
repositories: "backup-utils-private"
34-
- name: Checkout backup-utils-private
35-
uses: actions/checkout@v4
36-
with:
37-
token: ${{ steps.app-token.outputs.token }}
38-
- name: Install dependencies
39-
run: |
40-
sudo apt-get update -y
41-
sudo apt-get install -y moreutils debhelper help2man devscripts gzip
42-
- name: Create tag # this is required for the build scripts
43-
run: |
44-
git config user.name "${{ github.actor }}"
45-
git config user.email "[email protected]"
46-
git tag -a "v${{ github.event.inputs.version }}" -m "v${{ github.event.inputs.version }}"
47-
git push origin "v${{ github.event.inputs.version }}"
48-
- name: Package deb
49-
run: |
50-
./script/package-deb
51-
# many need to remove this once release-notes compilation is automated
52-
- name: Rename deb artifact
53-
run: |
54-
for file in dist/github-backup-utils_*_all.deb; do
55-
if [[ -f "$file" ]]; then
56-
mv "$file" "dist/github-backup-utils_${{ github.event.inputs.version }}_all.deb"
57-
fi
58-
done
59-
- name: Upload deb artifact
60-
uses: actions/upload-artifact@v3
61-
with:
62-
name: github-backup-utils_${{ github.event.inputs.version }}_all.deb
63-
path: |
64-
dist/github-backup-utils_${{ github.event.inputs.version }}_all.deb
65-
- name: Package tarball
66-
run: |
67-
./script/package-tarball
68-
- name: Upload tarball artifact
69-
uses: actions/upload-artifact@v3
70-
with:
71-
name: github-backup-utils-v${{ github.event.inputs.version }}.tar.gz
72-
path: |
73-
dist/github-backup-utils-v${{ github.event.inputs.version }}.tar.gz
22+
# build:
23+
# runs-on: ubuntu-latest
24+
# outputs:
25+
# rc-app-token: ${{ steps.app-token.outputs.token }}
26+
# steps:
27+
# - uses: actions/create-github-app-token@v1
28+
# id: app-token
29+
# with:
30+
# app-id: ${{ vars.RELEASE_CONTROLLER_APP_ID }}
31+
# private-key: ${{ secrets.RELEASE_CONTROLLER_APP_PRIVATE_KEY }}
32+
# owner: ${{ github.repository_owner }}
33+
# repositories: "backup-utils-private"
34+
# - name: Checkout backup-utils-private
35+
# uses: actions/checkout@v4
36+
# with:
37+
# token: ${{ steps.app-token.outputs.token }}
38+
# - name: Install dependencies
39+
# run: |
40+
# sudo apt-get update -y
41+
# sudo apt-get install -y moreutils debhelper help2man devscripts gzip
42+
# - name: Create tag # this is required for the build scripts
43+
# run: |
44+
# git config user.name "${{ github.actor }}"
45+
# git config user.email "[email protected]"
46+
# git tag -a "v${{ github.event.inputs.version }}" -m "v${{ github.event.inputs.version }}"
47+
# git push origin "v${{ github.event.inputs.version }}"
48+
# - name: Package deb
49+
# run: |
50+
# ./script/package-deb
51+
# # many need to remove this once release-notes compilation is automated
52+
# - name: Rename deb artifact
53+
# run: |
54+
# for file in dist/github-backup-utils_*_all.deb; do
55+
# if [[ -f "$file" ]]; then
56+
# mv "$file" "dist/github-backup-utils_${{ github.event.inputs.version }}_all.deb"
57+
# fi
58+
# done
59+
# - name: Upload deb artifact
60+
# uses: actions/upload-artifact@v3
61+
# with:
62+
# name: github-backup-utils_${{ github.event.inputs.version }}_all.deb
63+
# path: |
64+
# dist/github-backup-utils_${{ github.event.inputs.version }}_all.deb
65+
# - name: Package tarball
66+
# run: |
67+
# ./script/package-tarball
68+
# - name: Upload tarball artifact
69+
# uses: actions/upload-artifact@v3
70+
# with:
71+
# name: github-backup-utils-v${{ github.event.inputs.version }}.tar.gz
72+
# path: |
73+
# dist/github-backup-utils-v${{ github.event.inputs.version }}.tar.gz
7474
release:
75-
needs: build
75+
# needs: build
7676
runs-on: ubuntu-latest
7777
outputs:
7878
commit_hash: ${{ steps.empty-commit.outputs.commit_hash }}
@@ -85,25 +85,25 @@ jobs:
8585
private-key: ${{ secrets.RELEASE_CONTROLLER_APP_PRIVATE_KEY }}
8686
owner: ${{ github.repository_owner }}
8787
repositories: "backup-utils,backup-utils-private"
88-
- name: Checkout backup-utils
89-
if: github.event.inputs.branch_ref_or_commit == ''
90-
uses: actions/checkout@v4
91-
with:
92-
token: ${{ steps.app-token.outputs.token }}
93-
repository: github/backup-utils
94-
ref: master
95-
- name: Create empty commit
96-
if: github.event.inputs.branch_ref_or_commit == ''
97-
uses: stefanzweifel/git-auto-commit-action@v4
98-
id: empty-commit
99-
with:
100-
branch: master
101-
commit_message: "Test ${{ github.event.inputs.version }} release commit"
102-
commit_user_name: "release-controller[bot]"
103-
commit_user_email: "223695+release-controller[bot]@users.noreply.github.com"
104-
commit_options: "--allow-empty"
105-
push_options: "--force"
106-
skip_dirty_check: true
88+
# - name: Checkout backup-utils
89+
# if: github.event.inputs.branch_ref_or_commit == ''
90+
# uses: actions/checkout@v4
91+
# with:
92+
# token: ${{ steps.app-token.outputs.token }}
93+
# repository: github/backup-utils
94+
# ref: master
95+
# - name: Create empty commit
96+
# if: github.event.inputs.branch_ref_or_commit == ''
97+
# uses: stefanzweifel/git-auto-commit-action@v4
98+
# id: empty-commit
99+
# with:
100+
# branch: master
101+
# commit_message: "Test ${{ github.event.inputs.version }} release commit"
102+
# commit_user_name: "release-controller[bot]"
103+
# commit_user_email: "223695+release-controller[bot]@users.noreply.github.com"
104+
# commit_options: "--allow-empty"
105+
# push_options: "--force"
106+
# skip_dirty_check: true
107107
- name: Resolve release commit
108108
id: resolve-release-commit
109109
run: |
@@ -119,14 +119,14 @@ jobs:
119119
with:
120120
token: ${{ steps.app-token.outputs.token }}
121121
repository: github/backup-utils-private
122-
- name: Download deb artifact
123-
uses: actions/download-artifact@v3
124-
with:
125-
name: github-backup-utils_${{ github.event.inputs.version }}_all.deb
126-
- name: Download tarball artifact
127-
uses: actions/download-artifact@v3
128-
with:
129-
name: github-backup-utils-v${{ github.event.inputs.version }}.tar.gz
122+
# - name: Download deb artifact
123+
# uses: actions/download-artifact@v3
124+
# with:
125+
# name: github-backup-utils_${{ github.event.inputs.version }}_all.deb
126+
# - name: Download tarball artifact
127+
# uses: actions/download-artifact@v3
128+
# with:
129+
# name: github-backup-utils-v${{ github.event.inputs.version }}.tar.gz
130130
- name: Create Release
131131
uses: ncipollo/release-action@v1
132132
with:
@@ -135,9 +135,9 @@ jobs:
135135
repo: backup-utils
136136
name: |
137137
GitHub Enterprise Server Backup Utilities v${{ github.event.inputs.version }}
138-
artifacts: |
139-
github-backup-utils-v${{ github.event.inputs.version }}.tar.gz, \
140-
github-backup-utils_${{ github.event.inputs.version }}_all.deb
138+
# artifacts: |
139+
# github-backup-utils-v${{ github.event.inputs.version }}.tar.gz, \
140+
# github-backup-utils_${{ github.event.inputs.version }}_all.deb
141141
tag: v${{ github.event.inputs.version }}
142142
commit: ${{ steps.resolve-release-commit.outputs.release-ref-or-commit }}
143143
bodyFile: release-notes/${{ github.event.inputs.version }}.md

0 commit comments

Comments
 (0)