diff --git a/.github/workflows/error.yml b/.github/workflows/error.yml deleted file mode 100644 index 938f98e..0000000 --- a/.github/workflows/error.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: "Error" - -on: - ["push", "workflow_dispatch"] - -jobs: - asd: - runs-on: ubuntu-latest - name: ASD documents - steps: - - - name: Checkout - uses: actions/checkout@v2 - - - name: Error profile - id: asd - uses: ./ # Uses an action in the root directory - with: - profile: tests/profile/error.xml - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ${{ steps.asd.outputs.dir}} - destination_dir: ${{ steps.asd.outputs.dir}} - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3e55ad7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: Release v1 +on: + workflow_dispatch: + release: + types: [published] +jobs: + publish: + name: Release + runs-on: ubuntu-latest + + steps: + - name: Check out the repo + uses: actions/checkout@v2 + with: + fetch-depth: 0 + ref: master + - run: | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + - run: | + git tag -f v1 + git push -f origin v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}