diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index bbe66d5..7e25286 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -11,11 +11,7 @@ jobs: build: runs-on: self-hosted steps: - - uses: actions/checkout@v3 - - name: Build image - run: docker build -t ${{ github.repository }} . - - name: Deploy image + - name: Deploy run: | - docker stop ${{ github.event.repository.name }} || true - docker rm ${{ github.event.repository.name }} || true - docker run -d -e ${{ github.repository }} + npm install + npm run build