Skip to content

Build, Release, and Publish #38

Build, Release, and Publish

Build, Release, and Publish #38

Workflow file for this run

name: Build, Release, and Publish
on:
workflow_dispatch:
inputs:
revision:
description: "Git Revision to release"
required: true
release-version:
description: "Specify the version number"
required: true
env:
AWS_DEFAULT_REGION: eu-central-1
jobs:
create-release::

Check failure on line 17 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Build, Release, and Publish

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 17, Col: 3): The identifier 'create-release:' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
outputs:
pc_contracts_cli: ${{ steps.set_filename_vars_and_rename.outputs.pc_contracts_cli }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ github.token }}
- name: Acquire AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: Download artifact from S3
run: |
aws s3 cp "s3://pcsc-bucket/${{ github.event.inputs.revision }}.zip" ./pc-contracts-cli-v${{ github.event.inputs.release-version }}.zip
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: ./.changes/${{ github.event.inputs.release-version }}.md
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
files: ./pc-contracts-cli-v${{ github.event.inputs.release-version }}.zip
name: "v${{ github.event.inputs.release-version }}"