Create public release #1
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: Create public release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: Version to release | |
| required: true | |
| jobs: | |
| run-script: | |
| name: Execute Shell Script | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Check out the private source code | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: localstack/localstack-k8s-operator | |
| token: ${{ secrets.PRIVATE_REPO_TOKEN }} | |
| path: private-src | |
| ref: ${{ inputs.version }} | |
| - name: Copy manifests to final position | |
| run: | | |
| mkdir -p ${{ inputs.version }} | |
| cp private-src/release/controller.yaml ${{ inputs.version }}/controller.yaml | |
| - name: Create tag and push | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add "${{ inputs.version }}" | |
| git commit -m "Add version ${{ inputs.version }}" | |
| git tag -a "${{ inputs.version }}" -m "Release ${{ inputs.version }}" | |
| git push origin "${{ inputs.version }}" | |