Skip to content

Commit

Permalink
experiment: manually run next release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aadnekar committed Dec 18, 2023
1 parent 5f8d78d commit 485375a
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 23 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: Prepare nRF Connect for Desktop build
name: Build

on:
workflow_call:
Expand Down Expand Up @@ -37,5 +37,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: nRF Connect for Desktop
path: "release/nrfconnect*"
retention-days: 7
path: |
release/nrfconnect*
Changelog.md
retention-days: 7
35 changes: 19 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build nRF Connect for Desktop

on:
pull_request:
branches:
- main
push:
branches:
- main
pull_request:
branches:
- main
push:
branches:
- main

jobs:
build_on_windows:
Expand All @@ -19,14 +19,17 @@ jobs:
with:
runner: ubuntu-latest
electronArgument: ''
release:
uses: ./.github/workflows/release
needs: [ build_on_windows, build_on_ubuntu ]

# build_on_mac_intel:
# uses: ./.github/workflows/build.yml
# with:
# runner: macos-latest
# electronArgument: --x64
# build_on_mac_apple_silicon:
# uses: ./.github/workflows/build.yml
# with:
# runner: macos-latest-xlarge
# electronArgument:
# build_on_mac_intel:
# uses: ./.github/workflows/build.yml
# with:
# runner: macos-latest
# electronArgument: --x64
# build_on_mac_apple_silicon:
# uses: ./.github/workflows/build.yml
# with:
# runner: macos-latest-xlarge
# electronArgument:
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,24 @@ jobs:
release:
runs-on: ['ubuntu-latest']
steps:
- name: Download Artifacts from build
uses: actions/download-artifact@v4
with:
name: nRF Connect for Desktop
- name: List directory
run: ls -lR
- name: File workspace/Changelog.md
run: file ${{ github.workspace }}/Changelog.md
- name: File ./Changelog.md
run: file ./Changelog.md
- name: Create Release
uses: ncipollo/release-action@v1.13.0
uses: softprops/action-gh-release@v1
with:
body_path: ${{ github.workspace }}/Changelog.md
generate_release_notes: true
allowUpdates: false
artifacts: 'release/*'

files: |
nrfconnect*
prerelease: ${{ inputs.prerelease }}
draft: ${{ inputs.draft }}

Expand Down
7 changes: 7 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 4.3.1 - Unreleased

### Added

- Nothing has been added, this is simply a test to see if we can auto generate
the changelog using github actions.

## 4.3.0 - 2023-12-07

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nrfconnect",
"version": "4.3.0",
"version": "4.3.1",
"description": "nRF Connect for Desktop",
"repository": {
"type": "git",
Expand Down

0 comments on commit 485375a

Please sign in to comment.