Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alanderex committed Oct 6, 2024
1 parent c815eaa commit 617e0f4
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,14 @@ on:
required: true
default: "v0.0.0"

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
docs-release:
deploy:
# Don't run on forks
if: github.repository == 'pioneershub/confernce' && (startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.tag, 'v'))
if: github.repository == 'pioneershub/confernce'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# fetch everything so we can checkout the tag
fetch-depth: 0
submodules: recursive

# check out tag if workflow_dispatch
- name: Checkout tag
if: github.event_name == 'workflow_dispatch'
run: |
git checkout tags/${{ github.event.inputs.tag }}
- uses: prefix-dev/setup-pixi@v0.8.1
with:
environments: default
Expand All @@ -61,14 +45,6 @@ jobs:
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Extract tag name
if: github.event_name != 'workflow_dispatch'
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Tag from workflow_dispatch
if: github.event_name == 'workflow_dispatch'
run: echo "RELEASE_VERSION=${{ github.event.inputs.tag }}" >> $GITHUB_ENV

- name: Deploy with mike 🚀
run: |
pixi run -e default mike deploy --push --update-aliases $RELEASE_VERSION latest

0 comments on commit 617e0f4

Please sign in to comment.