Skip to content

Release

Release #14

Workflow file for this run

name: Release
'on':
workflow_dispatch: null
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: sudo bash -c "curl --fail -L -o /usr/bin/buildifier https://github.com/bazelbuild/buildtools/releases/download/v7.3.1/buildifier-linux-amd64 && chmod 0755 /usr/bin/buildifier"
- run: git config --global user.email "[email protected]" && git config --global user.name "Raccoons Build"
# - run: git clone https://github.com/illicitonion/bazel-central-registry.git /tmp/outs/bcr_dir && (cd /tmp/outs/bcr_dir && git checkout openssl)
- name: Checkout BCR
uses: actions/checkout@v3
repository: illicitonion/bazel-central-registry

Check failure on line 21 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 21, Col: 7): Unexpected value 'repository' .github/workflows/release.yaml (Line: 22, Col: 7): Unexpected value 'token'
token: ${{ secrets.BCR_GITHUB_TOKEN }}
path: /tmp/outs/bcr_dir
ref: refs/heads/openssl
# GITHUB_TOKEN: ${{ secrets.BCR_GITHUB_TOKEN }}
- run: python3 generate.py --bcr_dir=/tmp/outs/bcr_dir --overlay_tar_path=$(pwd)/bazel-openssl-cc-${{github.ref_name}}.tar.gz --tag=${{github.ref_name}}
- run: cd /tmp/outs/bcr_dir && git checkout -b prep-${{github.ref_name}} && git add . && git commit -m "Release openssl ${{github.ref_name}}" && git push -u origin prep-${{github.ref_name}} && gh pr create --title "Add openssl ${{github.ref_name}}" --body ""
env:
GITHUB_TOKEN: ${{ secrets.BCR_GITHUB_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bcr-patch.tar.gz
bazel-openssl-cc-${{github.ref_name}}.tar.gz