Skip to content

Commit db35c3b

Browse files
authored
Merge pull request #97 from ufabc-next/fix/deploy
adjust congig
2 parents 9fbff60 + 715978c commit db35c3b

File tree

4 files changed

+20
-9
lines changed

4 files changed

+20
-9
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
branches:
9+
- fix/deploy
710
workflow_dispatch:
811

912
jobs:
1013
submit:
1114
runs-on: ubuntu-latest
1215
steps:
13-
- uses: actions/checkout@v5
14-
15-
- uses: pnpm/action-setup@v4
16-
17-
- uses: actions/setup-node@v4
16+
- uses: actions/checkout@v6
17+
- uses: pnpm/action-setup@v4.2.0
18+
- uses: actions/setup-node@v6.1.0
1819
with:
1920
node-version: 22
2021
cache: 'pnpm'
@@ -26,12 +27,18 @@ jobs:
2627
run: |
2728
pnpm zip
2829
30+
- name: Authenticate to Google
31+
id: auth
32+
uses: google-github-actions/auth@v2
33+
with:
34+
credentials_json: ${{ secrets.CHROME_SERVICE_ACCOUNT_JSON }}
35+
token_format: 'access_token'
36+
access_token_scopes: 'https://www.googleapis.com/auth/chromewebstore'
37+
2938
- name: Submit to stores
3039
run: |
3140
pnpm wxt submit \
3241
--chrome-zip .output/*-chrome.zip
3342
env:
3443
CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }}
35-
CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }}
36-
CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }}
37-
CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }}
44+
CHROME_REFRESH_TOKEN: ${{ steps.auth.outputs.access_token }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ components.d.ts
3030

3131
dist/**
3232
.env.submit
33+
.env.*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "UFABC next - extensão",
33
"private": true,
4-
"version": "2.1.8",
4+
"version": "2.1.9",
55
"description": "Adiciona funcionalidades novas em sistemas da UFABC",
66
"engines": {
77
"node": ">22"

wxt.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
55

66
// See https://wxt.dev/api/config.html
77
export default defineConfig({
8+
zip: {
9+
artifactTemplate: '{{name}}-{{version}}-{{platform}}.zip',
10+
},
811
srcDir: 'src',
912
modules: ["@wxt-dev/module-vue"],
1013
manifest: {

0 commit comments

Comments
 (0)