mirror of
https://github.com/yummy4friends/y4f.git
synced 2025-07-19 02:35:52 +02:00
Feature/docker (#31)
* Add Docker capabilities Changed launchSettings Added Dockerfile && docker-compose with traefik labels * Relocate launchSettings.json * Delete workflows Not needed anymore * Add Docker for WebApi Added docker-compose && Dockerfile * Fix minor mistakes --------- Co-authored-by: ProfessionalUwU <andre.fuhry@hopeless-cloud.xyz>
This commit is contained in:
29
.github/workflows/main.yml
vendored
29
.github/workflows/main.yml
vendored
@ -1,29 +0,0 @@
|
||||
name: Deploy blazor to GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "dev" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 7.0
|
||||
- name: Publish
|
||||
run: dotnet publish --configuration Release -o release --nologo --runtime linux-x64 --self-contained src/y4f/y4f.csproj
|
||||
- name: Commit wwwroot to GitHub Pages
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
BRANCH: gh-pages
|
||||
FOLDER: release/wwwroot
|
||||
- name: Change base-tag in index.html from / to y4f
|
||||
run: sed -i 's/<base href="\/" \/>/<base href="\/y4f\/" \/>/g' release/wwwroot/index.html
|
||||
- name: Add .nojekyll file
|
||||
run: touch release/wwwroot/.nojekyll
|
Reference in New Issue
Block a user