Skip to content

Commit 1eb6431

Browse files
committed
one more test
1 parent 3ad603b commit 1eb6431

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

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

Lines changed: 55 additions & 55 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 }}
@@ -91,7 +91,7 @@ jobs:
9191
token: ${{ steps.app-token.outputs.token }}
9292
repository: github/backup-utils
9393
- name: Create empty commit
94-
if: github.event.inputs.release_commit_branch == ''
94+
# if: github.event.inputs.release_commit_branch == ''
9595
uses: stefanzweifel/git-auto-commit-action@v4
9696
id: empty-commit
9797
with:
@@ -137,7 +137,7 @@ jobs:
137137
github-backup-utils-v${{ github.event.inputs.version }}.tar.gz, \
138138
github-backup-utils_${{ github.event.inputs.version }}_all.deb
139139
tag: v${{ github.event.inputs.version }}
140-
commit: ${{ steps.empty-commit.outputs.commit_hash }}
140+
commit: 3.9-main
141141
bodyFile: release-notes/${{ github.event.inputs.version }}.md
142142
draft: ${{ github.event.inputs.draft }}
143143
allowUpdates: true

0 commit comments

Comments
 (0)