-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various cleanups to our github action setup (#283)
- Loading branch information
Showing
9 changed files
with
51 additions
and
124 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Bootstrap Checkout | ||
description: Ensures an action that needs to build has access to git tags | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# Ensure we fetch all tags | ||
- shell: bash | ||
run: | | ||
git fetch --prune --unshallow --tags | ||
git tag --list | ||
# Install .NET version as mandated by global.json | ||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
global-json-file: global.json | ||
|
||
# Setup git config | ||
- uses: elastic/apm-pipeline-library/.github/actions/setup-git@current |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
env: | ||
DOTNET_VERSION: '6.0.400' | ||
|
@@ -16,26 +17,17 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: elastic/apm-pipeline-library/.github/actions/setup-git@current | ||
|
||
- name: Bootstrap Action Workspace | ||
uses: ./.github/workflows/bootstrap | ||
- name: Generate local nuget packages | ||
uses: ./.github/workflows/docker-run | ||
with: | ||
dotnet-sdk-version: ${{ env.DOTNET_VERSION }} | ||
command: ./build.sh generatepackages -s true | ||
run: ./build.sh generatepackages -s true | ||
|
||
- name: Validate *.npkg files that were created | ||
uses: ./.github/workflows/docker-run | ||
with: | ||
dotnet-sdk-version: ${{ env.DOTNET_VERSION }} | ||
command: ./build.sh validatepackages -s true | ||
run: ./build.sh validatepackages -s true | ||
|
||
- name: Inspect public API change | ||
uses: ./.github/workflows/docker-run | ||
with: | ||
dotnet-sdk-version: ${{ env.DOTNET_VERSION }} | ||
command: ./build.sh generateapichanges -s true | ||
run: ./build.sh generateapichanges -s true | ||
|
||
- name: Prepare feedz.io | ||
uses: hashicorp/[email protected] | ||
|
@@ -49,10 +41,7 @@ jobs: | |
secret/apm-team/ci/elastic-observability-feedz.io url | REPO_API_URL | ||
- name: Release to feedz.io | ||
uses: ./.github/workflows/docker-run | ||
with: | ||
dotnet-sdk-version: ${{ env.DOTNET_VERSION }} | ||
command: .ci/deploy.sh ${REPO_API_KEY} ${REPO_API_URL} | ||
- run: dotnet nuget push 'build/output/*.nupkg' -k ${REPO_API_KEY} -s ${REPO_API_URL} --skip-duplicate --no-symbols | ||
|
||
- name: publish canary packages github package repository | ||
shell: bash | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,55 +10,29 @@ permissions: | |
contents: write | ||
issues: write | ||
|
||
env: | ||
DOTNET_VERSION: '6.0.400' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: elastic/apm-pipeline-library/.github/actions/setup-git@current | ||
|
||
- name: Bootstrap Action Workspace | ||
uses: ./.github/workflows/bootstrap | ||
|
||
- name: Generate local nuget packages | ||
uses: ./.github/workflows/docker-run | ||
with: | ||
dotnet-sdk-version: ${{ env.DOTNET_VERSION }} | ||
command: ./build.sh generatepackages -s true | ||
run: ./build.sh generatepackages -s true | ||
|
||
- name: Validate *.npkg files that were created | ||
uses: ./.github/workflows/docker-run | ||
with: | ||
dotnet-sdk-version: ${{ env.DOTNET_VERSION }} | ||
command: ./build.sh validatepackages -s true | ||
run: ./build.sh validatepackages -s true | ||
|
||
- name: Inspect public API change | ||
uses: ./.github/workflows/docker-run | ||
with: | ||
dotnet-sdk-version: ${{ env.DOTNET_VERSION }} | ||
command: ./build.sh generateapichanges -s true | ||
run: ./build.sh generateapichanges -s true | ||
|
||
- name: Generate release notes | ||
uses: ./.github/workflows/docker-run | ||
with: | ||
dotnet-sdk-version: ${{ env.DOTNET_VERSION }} | ||
command: ./build.sh generatereleasenotes -s true --token ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Inspect public API change | ||
uses: ./.github/workflows/docker-run | ||
with: | ||
dotnet-sdk-version: ${{ env.DOTNET_VERSION }} | ||
command: ./build.sh generateapichanges -s true | ||
run: ./build.sh generatereleasenotes -s true --token ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create or update release for tag on github | ||
uses: ./.github/workflows/docker-run | ||
with: | ||
dotnet-sdk-version: ${{ env.DOTNET_VERSION }} | ||
command: ./build.sh createreleaseongithub -s true --token ${{ secrets.GITHUB_TOKEN }} | ||
run: ./build.sh createreleaseongithub -s true --token ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Prepare Nuget | ||
uses: hashicorp/[email protected] | ||
|
@@ -72,10 +46,7 @@ jobs: | |
secret/apm-team/ci/elastic-observability-nuget url | REPO_API_URL | ||
- name: Release to Nuget | ||
uses: ./.github/workflows/docker-run | ||
with: | ||
dotnet-sdk-version: ${{ env.DOTNET_VERSION }} | ||
command: .ci/deploy.sh ${REPO_API_KEY} ${REPO_API_URL} | ||
run: dotnet nuget push 'build/output/*.nupkg' -k ${REPO_API_KEY} -s ${REPO_API_URL} --skip-duplicate --no-symbols | ||
|
||
- if: ${{ success() }} | ||
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current | ||
|
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
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