action: support GitHub check in branch protection (#1508) #55
This file contains 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
--- | |
# Publish a snapshot. A "snapshot" is a packaging of the latest *unreleased* APM agent, | |
# published to a known GCS bucket for use in edge demo/test environments. | |
name: Snapshoty | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '*.md' | |
- '*.asciidoc' | |
- 'docs/**' | |
jobs: | |
upload: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
cache: true | |
cache-dependency-path: '**/go.sum' | |
- name: Create snapshot tarball | |
run: ./scripts/ci/package.sh | |
- name: Publish snaphosts | |
uses: elastic/apm-pipeline-library/.github/actions/snapshoty-simple@current | |
with: | |
config: '.ci/snapshoty.yml' | |
vaultUrl: ${{ secrets.VAULT_ADDR }} | |
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} | |
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} |