Skip to content

Update dotnet.yml

Update dotnet.yml #12

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
env:
IMAGE_REPOSITORY_SECRET: ${{ secrets.IMAGE_REPOSITORY_SECRET }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0
- name: enter
run: cd ~/work/EdgarFriend/EdgarFriend/EdgarFriend/
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet publish ~/work/EdgarFriend/EdgarFriend/EdgarFriend/
- name: push
run: |
docker login --username jonmest --password $IMAGE_REPOSITORY_SECRET ghcr.io/jonmest
docker push ghcr.io/jonmest/edgarfriend:latest