name: tag
on:
  push:
    tags:
      # this is a glob, not a regexp
      - '[0-9]*'
jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: Clone repository
        uses: actions/checkout@v2

      - name: Build release tarball
        # run as root; current Ubuntu podman breaks user networking ("could not find slirp4netns")
        run: sudo PUBLISH_TAR=1 tests/run-apt

      - name: Create GitHub release
        uses: docker://antonyurchenko/git-release:latest
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          CHANGELOG_FILE: "NEWS"
        with:
          args: umockdev-*.tar.xz

name: tag
on:
  push:
    tags:
      # this is a glob, not a regexp
      - '[0-9]*'
jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - name: Clone repository
        uses: actions/checkout@v2

      - name: Workaround for https://github.com/actions/checkout/pull/697
        run: git fetch --force origin $(git describe --tags):refs/tags/$(git describe --tags)

      - name: Build release tarball
        # run as root; current Ubuntu podman breaks user networking ("could not find slirp4netns")
        run: sudo PUBLISH_TAR=1 tests/run-apt

      - name: Create GitHub release
        uses: docker://antonyurchenko/git-release:latest
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          CHANGELOG_FILE: "NEWS"
        with:
          args: umockdev-*.tar.xz

Add workaround for actions/checkout tag breakage
workflows: Add workaround for actions/checkout tag breakage

See https://github.com/actions/checkout/pull/697
