|
19 | 19 | default: true
|
20 | 20 |
|
21 | 21 | 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 |
74 | 74 | release:
|
75 |
| - needs: build |
| 75 | + # needs: build |
76 | 76 | runs-on: ubuntu-latest
|
77 | 77 | outputs:
|
78 | 78 | commit_hash: ${{ steps.empty-commit.outputs.commit_hash }}
|
|
91 | 91 | token: ${{ steps.app-token.outputs.token }}
|
92 | 92 | repository: github/backup-utils
|
93 | 93 | - name: Create empty commit
|
94 |
| - if: github.event.inputs.release_commit_branch == '' |
| 94 | + # if: github.event.inputs.release_commit_branch == '' |
95 | 95 | uses: stefanzweifel/git-auto-commit-action@v4
|
96 | 96 | id: empty-commit
|
97 | 97 | with:
|
@@ -137,7 +137,7 @@ jobs:
|
137 | 137 | github-backup-utils-v${{ github.event.inputs.version }}.tar.gz, \
|
138 | 138 | github-backup-utils_${{ github.event.inputs.version }}_all.deb
|
139 | 139 | tag: v${{ github.event.inputs.version }}
|
140 |
| - commit: ${{ steps.empty-commit.outputs.commit_hash }} |
| 140 | + commit: 3.9-main |
141 | 141 | bodyFile: release-notes/${{ github.event.inputs.version }}.md
|
142 | 142 | draft: ${{ github.event.inputs.draft }}
|
143 | 143 | allowUpdates: true
|
|
0 commit comments