Release #5
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: Release | |
run-name: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
debug: | |
name: Debug | |
runs-on: ubuntu-latest | |
steps: | |
- run: | | |
echo "=============" | |
echo "=== Debug ===" | |
echo "=============" | |
echo "github ref: " ${{ vars.GITHUB_REF }} | |
echo "dotnet version: " ${{ vars.DOTNET_VERSION }} | |
echo "event name: " ${{ github.event_name }} | |
frontend: | |
name: EG.Frontend | |
runs-on: ubuntu-latest | |
needs: debug | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setting up Dotnet with ${{ vars.DOTNET_VERSION }} version | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ vars.DOTNET_VERSION }} | |
- name: EG Nuget repo | |
run: | | |
dotnet nuget add source --username Andras-Csanyi --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/EncyclopediaGalactica/index.json" | |
- name: Restore | |
run: | | |
dotnet restore FrontEnd.sln | |
- name: Build | |
run: | | |
dotnet build --configuration Release FrontEnd.sln | |
- name: Test | |
run: | | |
dotnet test --no-restore --verbosity normal FrontEnd.sln | |
semantic_versioning: | |
name: Semantic Versioning | |
runs-on: ubuntu-latest | |
needs: | |
- frontend | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
pages: write | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "lts/*" | |
- name: Install Semantic Dependencies | |
run: | | |
npm install npm | |
npm install semantic-release | |
npm install @semantic-release/changelog | |
npm install @semantic-release/exec | |
npm install @semantic-release/git | |
npm install @semantic-release/github | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
cache: 'pip' | |
- name: Debug Info Python tools | |
run: | | |
pip3 --version | |
pip3 install --user bump2version | |
- name: Semantic Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_FOR_SEMANTIC_RELEASE }} | |
run: | | |
npx semantic-release |