Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release notes generation and build path #1115

Merged
merged 6 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,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,14 +45,19 @@ jobs:

- name: Collect commit ranges
run: |
bash ./scripts/changelog.sh > ${{ github.workspace }}-CHANGELOG.txt
bash ./scripts/changelog.sh > ${{ github.workspace }}/CHANGELOG.txt

- 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
body_path: ${{ github.workspace }}/CHANGELOG.txt
draft: false
prerelease: false
tag_name: ${{ github.event.inputs.version }}
Expand Down
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
Loading