diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4d88cb9..9bfd85a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,8 +22,10 @@ jobs: - name: Set direct proxy run: go env -w GOPROXY=direct - run: go install github.com/wailsapp/wails/cmd/wails@latest + - name: Create api KEY file + run: echo "${{ secrets.API_TOKEN }}" > KEY - name: Update wails.json - run: node build/updateConfig.js ${{ github.ref_name }} false + run: node build/updateConfig.js ${{ github.ref_name }} false - uses: dAppServer/wails-build-action@v2.2 with: build-name: ${{ matrix.build.name }} diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index fa24e95..5cf5642 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -25,6 +25,8 @@ jobs: - name: Get current date id: date run: echo "::set-output name=date::$(date +'%Y.%m.%d')" + - name: Create api KEY file + run: echo "${{ secrets.API_TOKEN }}" > KEY - name: Update wails.json run: node build/updateConfig.js ${{ steps.date.outputs.date }}.${{ github.run_number }} true - uses: dAppServer/wails-build-action@v2.2 diff --git a/.gitignore b/.gitignore index 464c0fd..682b17d 100644 --- a/.gitignore +++ b/.gitignore @@ -190,4 +190,5 @@ fabric.properties !installer/steamcmd.exe !build/windows/installer/VC_redist.x64.exe !build/windows/installer/VC_redist.x86.exe -steamcmd \ No newline at end of file +steamcmd +KEY \ No newline at end of file diff --git a/main.go b/main.go index 6ea724f..9c23273 100644 --- a/main.go +++ b/main.go @@ -22,6 +22,9 @@ var assets embed.FS //go:embed wails.json var WailsConfigFile []byte +//go:embed KEY +var KEY string + const ( logFilePath = "main.log" )