dynamic-mode: remove secret from subscription example #75
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: pipeline | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| release: | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-tags: true | |
| fetch-depth: 0 | |
| - name: Setup Go environment | |
| uses: actions/setup-go@v3.3.1 | |
| with: | |
| go-version-file: go.mod | |
| cache-dependency-path: go.sum | |
| cache: true | |
| - name: release | |
| if: github.ref == 'refs/heads/main' | |
| shell: bash | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| GOOS: wasip1 | |
| GOARCH: wasm | |
| run: | | |
| go build -o ./atc_backend_v1_flight.wasm ./atc/backend/v1/flight | |
| go build -o ./atc_backend_v2_flight.wasm ./atc/backend/v2/flight | |
| go build -o ./atc_backend_converter.wasm ./atc/backend/converter | |
| go build -o ./atc_backend_airway.wasm ./atc/backend/airway | |
| go build -o ./atc_backend_airway_v2.wasm ./atc/backend/airwayv2 | |
| go build -o ./demos_dynamic_mode_v1_flight.wasm ./demos/dynamic-mode/backend/v1/flight/dynamic | |
| go build -o ./demos_dynamic_mode_v1_flight_subscription.wasm ./demos/dynamic-mode/backend/v1/flight/subscription | |
| go build -o ./demos_ingress_atc.wasm ./demos/ingress-atc/backend/v1/flight | |
| go build -o ./demos_ingress.wasm ./demos/ingress/flight | |
| gzip atc_backend_v1_flight.wasm | |
| gzip atc_backend_v2_flight.wasm | |
| gzip atc_backend_airway.wasm | |
| gzip atc_backend_airway_v2.wasm | |
| gzip atc_backend_converter.wasm | |
| gzip demos_dynamic_mode_v1_flight.wasm | |
| gzip demos_dynamic_mode_v1_flight_subscription.wasm | |
| gzip demos_ingress_atc.wasm | |
| gzip demos_ingress.wasm | |
| if [[ $(gh release list --json tagName -q 'any(.[]; .tagName == "latest")') != 'true' ]]; then | |
| gh release create latest ./atc_backend_v1_flight.wasm.gz ./atc_backend_airway.wasm.gz | |
| else | |
| gh release upload latest --clobber \ | |
| ./atc_backend_v1_flight.wasm.gz \ | |
| ./atc_backend_v2_flight.wasm.gz \ | |
| ./atc_backend_converter.wasm.gz \ | |
| ./atc_backend_airway.wasm.gz \ | |
| ./atc_backend_airway_v2.wasm.gz \ | |
| ./demos_dynamic_mode_v1_flight.wasm.gz \ | |
| ./demos_dynamic_mode_v1_flight_subscription.wasm.gz \ | |
| ./demos_ingress_atc.wasm.gz \ | |
| ./demos_ingress.wasm.gz | |
| fi | |
| git tag -f latest | |
| git push --tags -f |