Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
bxdavies committed Jan 28, 2024
2 parents f650cfe + bfd0129 commit 7469459
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
39 changes: 35 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,36 @@ on:
types: [published]

jobs:
version:
runs-on: ubuntu-latest
name: Build and bump version
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main

- name: Get version
run: |
tag=${{ github.event.release.tag_name }}
echo "VERSION=${tag#v}" >> $GITHUB_ENV
- name: Bump build version
id: bump
uses: vers-one/dotnet-project-version-updater@v1.3
with:
file: "Web.csproj"
version: ${{ env.VERSION }}

- run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
git add .
git commit -m "Bump project version to ${{ steps.bump.outputs.newVersion }}"
git push
release:
needs: version
name: Release
strategy:
matrix:
Expand All @@ -26,17 +55,19 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4
with:
ref: main

- name: Setup dotnet
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.115

- name: Build
shell: bash
run: |
tag=$(git describe --tags --abbrev=0)
tag=${{ github.event.release.tag_name }}
release_name="LighthouseNotes-Web-$tag-${{ matrix.target }}"
# Build everything
Expand All @@ -58,4 +89,4 @@ jobs:
with:
files: "LighthouseNotes-Web-*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<NoWarn>CS8620</NoWarn>
<PublishSingleFile>true</PublishSingleFile>
<Version>0.1.6</Version>
<Version>0.2.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 7469459

Please sign in to comment.