diff --git a/.github/workflows/build-uc2.yml b/.github/workflows/build-uc2.yml index c986bcc4..3b05b159 100644 --- a/.github/workflows/build-uc2.yml +++ b/.github/workflows/build-uc2.yml @@ -14,7 +14,6 @@ on: - "COPYING" pull_request: - env: CI: true @@ -546,4 +545,4 @@ jobs: uses: actions/upload-artifact@v1 with: path: ./${{ matrix.config.artifact }} - name: ${{ matrix.config.artifact }} + name: ${{ matrix.config.artifact }} \ No newline at end of file diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml new file mode 100644 index 00000000..0fdc4664 --- /dev/null +++ b/.github/workflows/prerelease.yml @@ -0,0 +1,51 @@ +on: + push: + tags: + - 'rc*' + workflow_dispatch: + +name: Upload Prerelease Assets + +jobs: + build: + name: Upload Release Assets + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: true + prerelease: true + + - name: create artifacts directory + run: mkdir artifact + working-directory: ./ + + - uses: dawidd6/action-download-artifact@v2 + id: download-artifact + with: + workflow: build-uc2.yml + workflow_conclusion: success + path: artifact + + - name: Display structure of downloaded files + run: ls -R + working-directory: artifact + + + - name: Upload Release Assets + id: upload-release-assets + uses: dwenegar/upload-release-assets@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + release_id: ${{ steps.create_release.outputs.id }} + assets_path: artifact \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..4aca9848 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,51 @@ +on: + push: + tags: + - 'v*' + workflow_dispatch: + +name: Upload Release Assets + +jobs: + build: + name: Upload Release Assets + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: true + prerelease: false + + - name: create artifacts directory + run: mkdir artifact + working-directory: ./ + + - uses: dawidd6/action-download-artifact@v2 + id: download-artifact + with: + workflow: build-uc2.yml + workflow_conclusion: success + path: artifact + + - name: Display structure of downloaded files + run: ls -R + working-directory: artifact + + + - name: Upload Release Assets + id: upload-release-assets + uses: dwenegar/upload-release-assets@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + release_id: ${{ steps.create_release.outputs.id }} + assets_path: artifact \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 214472cf..00000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: 'Close stale issues and PRs' -on: - schedule: - - cron: '30 5 * * *' - workflow_dispatch: - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v4 - with: - stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.' - days-before-stale: 60 - days-before-close: 15 - exempt-all-milestones: true - exempt-issue-labels: 'pinned,help wanted,enhancement,bug' - exempt-pr-labels: 'pinned'