From 6f3c39418b1883384eca22010027b37341d1d754 Mon Sep 17 00:00:00 2001 From: SystemGlitch Date: Sun, 31 Mar 2024 22:31:47 +0200 Subject: [PATCH] Fix CI --- .github/workflows/build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7066b87..c4d7680 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,26 +5,26 @@ on: - master jobs: build: - runs-on: ubuntu-16.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: 1.16 + go-version: "1.22" - name: Build run: go build -ldflags="-w -s" - name: Upload artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: faq-bot path: faq-bot deploy: needs: build - runs-on: ubuntu-16.04 + runs-on: ubuntu-latest steps: - name: Download artifact - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v4 with: name: faq-bot - name: Stop service @@ -48,7 +48,7 @@ jobs: overwrite: true target: "${{ secrets.DEPLOY_TARGET }}" restart: - runs-on: ubuntu-16.04 + runs-on: ubuntu-latest needs: deploy steps: - name: Restart service