This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
chore(main): release 0.1.13 (#66) #25
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
name: Publish UDS Capability Gitlab | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
packages: write | |
id-token: write | |
jobs: | |
tag-new-version: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
outputs: | |
release_created: ${{ steps.release-flag.outputs.release_created }} | |
steps: | |
- name: Create Release Tag | |
id: tag | |
uses: google-github-actions/release-please-action@v3 | |
with: | |
command: manifest # use configs in release-please-config.json | |
- id: release-flag | |
run: echo "release_created=${{ steps.tag.outputs.release_created || false }}" >> $GITHUB_OUTPUT | |
# Testing non release pushes to main | |
test-uds-capability: | |
runs-on: ubuntu-latest | |
needs: tag-new-version | |
if: ${{ needs.tag-new-version.outputs.release_created == 'false'}} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
repository: ${{ github.repository }} | |
ref: ${{ github.ref_name }} | |
- name: Run E2E Tests | |
uses: ./.github/actions/e2e | |
with: | |
instance-size: ${{ vars.EC2_INSTANCE_SIZE }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
role-to-assume: ${{ secrets.AWS_COMMERCIAL_ROLE_TO_ASSUME }} | |
registry1-username: ${{ secrets.REGISTRY1_USERNAME }} | |
registry1-password: ${{ secrets.REGISTRY1_PASSWORD }} | |
publish-uds-capability-gitlab: | |
needs: tag-new-version | |
if: ${{ needs.tag-new-version.outputs.release_created == 'true'}} | |
uses: ./.github/workflows/publish-package.yml | |
secrets: inherit |