Feat/v50 der gnade #128
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: Test CD | |
| on: | |
| pull_request: | |
| types: [opened, labeled, unlabeled, synchronize] | |
| workflow_dispatch: | |
| jobs: | |
| run_pull: | |
| name: run pull | |
| runs-on: ubuntu-latest | |
| env: | |
| # Setting an environment variable with the value of a configuration variable | |
| LABEL: ${{ | |
| contains(github.event.pull_request.labels.*.name, 'deploy_5173') && 'deploy_5173' || | |
| (contains(github.event.pull_request.labels.*.name, 'deploy_5174') && 'deploy_5174' || 'none') | |
| }} | |
| steps: | |
| - name: install liefer | |
| if: ${{ env.LABEL != 'none' }} | |
| run: | | |
| go install github.com/lxgr-linux/liefer@latest | |
| - name: deploy | |
| if: ${{ env.LABEL != 'none' }} | |
| run: | | |
| ~/go/bin/liefer deliver $LABEL ${{ github.event.pull_request.head.ref }} ${{ secrets.LIEFER_PRIVKEY }} --address ${{ secrets.LXGR_HOST }}:8080 |