diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8e5ef3f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI +on: + push: + tags: + - 'v*' + +jobs: + build: + name: Create Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - 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 }} + body: | + Release version ${{ github.ref }} + draft: false + prerelease: false diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fee32e4..477d609 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -8,12 +8,12 @@ jobs: steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: 1.15 + go-version: 1.21.x - name: Check out code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Build run: go build -v ./... diff --git a/go.mod b/go.mod index a5acc30..5069d51 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/mmarkdown/mmark/v2 -go 1.13 +go 1.21 require ( github.com/BurntSushi/toml v1.3.2