forked from Heroes-Profile/HeroesProfile.Uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- User settings - Bindings cleanup
- Loading branch information
Showing
18 changed files
with
439 additions
and
601 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
name: Build (dagger) | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
- "**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/Checkout@v4 | ||
with: | ||
submodules: 'true' | ||
ref: ${{ github.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Build Project with Dagger | ||
uses: dagger/[email protected] | ||
with: | ||
version: "latest" | ||
verb: call | ||
args: build --git=. stdout | ||
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout | ||
uses: actions/Checkout@v4 | ||
with: | ||
submodules: "true" | ||
ref: ${{ github.ref }} | ||
fetch-depth: 0 | ||
- name: Build Project with Dagger | ||
uses: dagger/[email protected] | ||
with: | ||
version: "latest" | ||
verb: call | ||
args: build --git=. stdout | ||
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,88 @@ | ||
name: Release (dagger) | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
# Workflow with Windows & Linux | ||
# This is so we can use dotnet mage to build the manifests | ||
|
||
permissions: | ||
pages: write | ||
contents: write | ||
packages: write | ||
id-token: write | ||
deployments: write | ||
|
||
on: | ||
# push: | ||
# tags: | ||
# - "v[0-9]+.[0-9]+.[0-9]+" | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Tag to release (e.g., v1.0.0)' | ||
required: true | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
release: | ||
if: false # This condition disables the job. Change to `true` or remove to enable. | ||
runs-on: ubuntu-latest | ||
publish: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: "true" | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET 8 SDK | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: "8.0.x" | ||
|
||
- name: Run release script | ||
run: .\dotnet-mage-release.ps1 | ||
continue-on-error: false | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: .\Heroesprofile.Uploader.Windows\bin\publish | ||
name: published | ||
retention-days: 1 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: published | ||
path: .\Heroesprofile.Uploader.Windows\bin\publish | ||
if-no-files-found: error | ||
retention-days: 2 | ||
overwrite: true | ||
deploy: | ||
needs: publish | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/Checkout@v4 | ||
with: | ||
submodules: 'true' | ||
ref: ${{ github.ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Release | ||
uses: dagger/[email protected] | ||
with: | ||
version: "latest" | ||
verb: call | ||
args: release --git=. --tag=${{ github.ref_name }} --token=env:GITHUB_TOKEN | ||
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Deploy to GitHub Pages | ||
uses: actions/deploy-pages@v4 | ||
id: deployment | ||
with: | ||
artifact_name: published | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Release to GitHub | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: ".application" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: ${{ github.ref }} | ||
tag: ${{ github.ref }} | ||
allowUpdates: true | ||
makeLatest: true | ||
replacesArtifacts: true | ||
generateReleaseNotes: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
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
Oops, something went wrong.