Skip to content

Commit

Permalink
temporary hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Aug 27, 2024
1 parent 998822b commit a18e207
Showing 1 changed file with 39 additions and 38 deletions.
77 changes: 39 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: release-version
run-name: "Release ${{ github.event.ref }}"
on:
push:
branches: more-platforms
tags:
- "*"

Expand Down Expand Up @@ -112,41 +113,41 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}

publish:
runs-on: ubuntu-latest
needs: build-linux

steps:
- name: Checkout GitHub Pages
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Determine tag
run: |
tag=$(echo ${{github.event.ref}} | cut -d/ -f3)
echo "tag=${tag}" >> $GITHUB_ENV
- name: Download package artifacts
uses: actions/download-artifact@v4
with:
name: package
path: package

- name: Publish crate
uses: integer32llc/margo-actions@main
with:
crates: package/*.crate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Commit and push to GitHub Pages
run: |-
set -eu
git config user.email "[email protected]"
git config user.name "Margo GitHub Action"
git add .
git commit -m "Release ${tag}"
git push origin gh-pages
# publish:
# runs-on: ubuntu-latest
# needs: build-linux

# steps:
# - name: Checkout GitHub Pages
# uses: actions/checkout@v4
# with:
# ref: gh-pages

# - name: Determine tag
# run: |
# tag=$(echo ${{github.event.ref}} | cut -d/ -f3)
# echo "tag=${tag}" >> $GITHUB_ENV

# - name: Download package artifacts
# uses: actions/download-artifact@v4
# with:
# name: package
# path: package

# - name: Publish crate
# uses: integer32llc/margo-actions@main
# with:
# crates: package/*.crate
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Commit and push to GitHub Pages
# run: |-
# set -eu

# git config user.email "[email protected]"
# git config user.name "Margo GitHub Action"

# git add .
# git commit -m "Release ${tag}"
# git push origin gh-pages

0 comments on commit a18e207

Please sign in to comment.