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