Promote v0.0.1-alpha.2 #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Promote | |
| run-name: "Promote ${{ github.ref_name }}" | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/build.yaml | |
| secrets: inherit | |
| with: | |
| is-development: false | |
| is-latest: true | |
| is-stable: ${{ ! contains(github.ref_name, '-') }} | |
| create-release: | |
| needs: build | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Get the artifacts name | |
| uses: scality/action-artifacts@v4 | |
| id: artifacts | |
| with: | |
| method: setup | |
| url: https://artifacts.scality.net | |
| user: ${{ secrets.ARTIFACTS_USER }} | |
| password: ${{ secrets.ARTIFACTS_PASSWORD }} | |
| - name: Retrieve install.yaml from artifacts | |
| run: > | |
| curl --fail -LO -u ${{ secrets.ARTIFACTS_USER }}:${{ secrets.ARTIFACTS_PASSWORD }} | |
| ${{ steps.artifacts.outputs.link }}/install.yaml | |
| - name: Retrieve crds.yaml from artifacts | |
| run: > | |
| curl --fail -LO -u ${{ secrets.ARTIFACTS_USER }}:${{ secrets.ARTIFACTS_PASSWORD }} | |
| ${{ steps.artifacts.outputs.link }}/crds.yaml | |
| - uses: softprops/action-gh-release@v2 | |
| with: | |
| name: Disk Management Agent ${{ github.ref_name }} | |
| tag_name: ${{ github.ref_name }} | |
| generate_release_notes: true | |
| prerelease: ${{ contains(github.ref_name, '-') }} | |
| draft: false | |
| files: | | |
| install.yaml | |
| crds.yaml | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |