From 4fcfd5e2eab2e0d9c759ca56cabc23f1e0355a50 Mon Sep 17 00:00:00 2001 From: Luke Craig Date: Mon, 9 Oct 2023 11:52:50 -0400 Subject: [PATCH] fix publish --- .github/workflows/publish.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 172abcb..bc341bb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,16 +10,17 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code + - name: 'Checkout code' uses: actions/checkout@v4 - + - name: 'Login to Github Container Registry' + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build run: | - docker run --rm -v $PWD:/app -w /app gcc gcc -o example example.c - - - name: Save package - uses: actions/upload-artifact@v3 - with: - name: example_package - path: example \ No newline at end of file + docker build -t ghcr.io/${{ github.repository }}:latest . + docker push ghcr.io/${{ github.repository }}:latest \ No newline at end of file