|
24 | 24 | type: boolean |
25 | 25 |
|
26 | 26 | jobs: |
27 | | - build-docker: |
28 | | - runs-on: ubuntu-latest |
29 | | - permissions: |
30 | | - contents: write |
31 | | - packages: write |
| 27 | + # build-docker: |
| 28 | + # runs-on: ubuntu-latest |
| 29 | + # permissions: |
| 30 | + # contents: write |
| 31 | + # packages: write |
32 | 32 |
|
33 | | - steps: |
34 | | - - name: Build docker |
35 | | - uses: Libertech-FR/lt-actions/release@main |
36 | | - with: |
37 | | - version_increment: ${{ github.event.inputs.version_increment }} |
38 | | - build_docker_image: ${{ github.event.inputs.build_docker_image }} |
39 | | - latest: ${{ github.event.inputs.latest }} |
40 | | - repository: ${{ github.repository }} |
41 | | - username: ${{ github.actor }} |
42 | | - password: ${{ secrets.GITHUB_TOKEN }} |
43 | | - access_token: ${{ secrets.GITHUB_TOKEN }} |
44 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
45 | | - # Optional parameters, thoses are default values : |
46 | | - registry: 'ghcr.io' |
47 | | - context: . |
| 33 | + # steps: |
| 34 | + # - name: Build docker |
| 35 | + # uses: Libertech-FR/lt-actions/release@main |
| 36 | + # with: |
| 37 | + # version_increment: ${{ github.event.inputs.version_increment }} |
| 38 | + # build_docker_image: ${{ github.event.inputs.build_docker_image }} |
| 39 | + # latest: ${{ github.event.inputs.latest }} |
| 40 | + # repository: ${{ github.repository }} |
| 41 | + # username: ${{ github.actor }} |
| 42 | + # password: ${{ secrets.GITHUB_TOKEN }} |
| 43 | + # access_token: ${{ secrets.GITHUB_TOKEN }} |
| 44 | + # github_token: ${{ secrets.GITHUB_TOKEN }} |
| 45 | + # # Optional parameters, thoses are default values : |
| 46 | + # registry: 'ghcr.io' |
| 47 | + # context: . |
48 | 48 |
|
49 | 49 | build-pkg: |
50 | 50 | runs-on: ubuntu-latest |
@@ -100,7 +100,26 @@ jobs: |
100 | 100 | maintainer: Libertech-FR |
101 | 101 | version: ${{ env.PACKAGE_VERSION }} # ${{ github.ref }} # refs/tags/v*.*.* |
102 | 102 | arch: 'amd64' |
103 | | - desc: 'Sesame Daemon' |
| 103 | + desc: 'Sesame Daemon'- name: Publish release |
| 104 | + |
| 105 | + - name: Update version |
| 106 | + shell: bash |
| 107 | + run: | |
| 108 | + echo NEW_VERSION=$(yarn version --${{ inputs.version_increment }} --json | jq -r '.data | select(contains("New version")) | split(":")[1] | gsub(" ";"")') >> $GITHUB_ENV |
| 109 | + env: |
| 110 | + REF: ${{ github.ref }} |
| 111 | + |
| 112 | + - name: Create release |
| 113 | + uses: ncipollo/release-action@v1 |
| 114 | + with: |
| 115 | + name: Release ${{ env.NEW_VERSION }} |
| 116 | + commit: ${{ env.REF }} |
| 117 | + draft: false |
| 118 | + prerelease: false |
| 119 | + generateReleaseNotes: true |
| 120 | + token: ${{ inputs.github_token }} |
| 121 | + makeLatest: ${{ inputs.latest }} |
| 122 | + tag: ${{ env.NEW_VERSION }} |
104 | 123 |
|
105 | 124 | - name: Release |
106 | 125 | uses: svenstaro/upload-release-action@v2 |
|
0 commit comments