Skip to content

Commit

Permalink
Release debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanKingston committed Oct 16, 2024
1 parent 48c913c commit c3e0310
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions: write-all
jobs:
build:
if: github.event.action != 'closed'
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- name: Checkout repository
Expand Down
36 changes: 22 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Release

on:
pull_request:
types: [opened, synchronize, closed, ready_for_review]
workflow_dispatch:
inputs:
version:
Expand All @@ -21,9 +23,10 @@ jobs:

- name: Fetch files and checkout
run: |
git fetch --all
git checkout releases
git checkout main .
git fetch origin
git checkout -b main origin/main
git checkout -b releases origin/releases
git checkout main -- .
- name: Build release
run: |
Expand All @@ -44,15 +47,20 @@ jobs:

- name: Collect commit ranges
run: |
bash ./scripts/changelog.sh > ${{ github.workspace }}-CHANGELOG.txt
bash ./scripts/changelog.sh > ${{ github.workspace }}/CHANGELOG.txt
- name: Create Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: ${{ github.workspace }}-CHANGELOG.txt
draft: false
prerelease: false
tag_name: ${{ github.event.inputs.version }}
target_commitish: "releases"
- name: Debug changelog file
run: |
ls -la ${{ github.workspace }}/CHANGELOG.txt
cat ${{ github.workspace }}/CHANGELOG.txt
#- name: Create Release
# uses: softprops/action-gh-release@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# body_path: ${{ github.workspace }}/CHANGELOG.txt
# draft: false
# prerelease: false
# tag_name: ${{ github.event.inputs.version }}
# target_commitish: "releases"
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04, windows-latest ]
os: [ ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20
Expand All @@ -37,7 +37,7 @@ jobs:
- name: "Clean tree"
run: "npm run test-clean-tree"
integration:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
run: npm run docs

deploy-docs:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: integration
if: ${{ github.ref == 'refs/heads/main' }}
environment:
Expand Down

0 comments on commit c3e0310

Please sign in to comment.