Merge pull request #17 from atc-net/feature/maintenance #124
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Post-Integration" | |
on: | |
push: | |
branches: | |
- main | |
- '!stable' | |
- '!gh-pages' | |
env: | |
ATC_EMAIL: '[email protected]' | |
ATC_NAME: 'Atc-Net' | |
jobs: | |
merge-to-stable: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛒 Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: ⚙️ Setup dotnet 8.0.x | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: 🧹 Clean | |
run: dotnet clean -c Release && dotnet nuget locals all --clear | |
- name: 🔁 Restore packages | |
run: dotnet restore | |
- name: 🛠️ Build | |
run: dotnet build -c Release --no-restore /p:UseSourceLink=true | |
- name: 🧪 Run unit tests | |
run: dotnet test -c Release --no-build | |
- name: ⏩ Merge to stable-branch | |
run: | | |
git config --local user.email ${{ env.ATC_EMAIL }} | |
git config --local user.name ${{ env.ATC_NAME }} | |
git checkout stable | |
git merge --ff-only main | |
git push origin stable |