From 567f04ff1fbf517942d77eab19c0647926bb4285 Mon Sep 17 00:00:00 2001 From: Your Name <7475382+fredfalcon@users.noreply.github.com> Date: Mon, 6 Mar 2023 21:56:56 -0500 Subject: [PATCH] Update main.yaml --- .github/workflows/main.yaml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5ec3c7e..de375e4 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -1,19 +1,29 @@ -name: Releases +name: Publish -on: +on: push: tags: - - '*' + - '*' jobs: - build: + name: Publish webextension runs-on: ubuntu-latest - permissions: - contents: write + steps: - - uses: actions/checkout@v2 - - uses: ncipollo/release-action@v1 + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Build + run: | + npm ci + npm run build + - name: Upload & release + uses: mnao305/chrome-extension-upload@v4.0.1 with: - artifacts: "blt-extension.zip" - bodyFile: "body.md" + file-path: dist/file.zip + extension-id: hogefuga(extension id) + client-id: ${{ secrets.CLIENT_ID }} + client-secret: ${{ secrets.CLIENT_SECRET }} + refresh-token: ${{ secrets.REFRESH_TOKEN }} \ No newline at end of file