From ccc24cd38fe13767497812c71a8e354980062ab6 Mon Sep 17 00:00:00 2001 From: karutoh Date: Wed, 31 Jan 2024 15:56:11 -0800 Subject: [PATCH] Test --- .gitea/workflows/demo.yaml | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 3424513..24ed86b 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -25,29 +25,15 @@ jobs: cmake -DCMAKE_BUILD_TYPE=Debug -DLINUX_WINDOW_SYSTEM:STRING=XCB . cmake --build . --config Debug - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: https://github.com/actions/setup-go@v4 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - - name: Upload Release Asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./libEHS.a - asset_name: EHS - asset_content_type: application/octet-stream - - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} + go-version: '>=1.20.1' + - name: Use Go Action + id: use-go-action + uses: https://gitea.com/actions/release-action@main + with: + files: |- + libEHS.a + api_key: '${{secrets.RELEASE_TOKEN}}' - run: echo "This job's status is ${{ job.status }}." \ No newline at end of file