aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/docker_build.yml
blob: 6928f99face5105d7e0811b0e0d303baad8a4432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
'on':
  push:
    tags:
      - v*
jobs:
  compile:
    name: Compile extension in docker
    runs-on: ubuntu-latest
    steps:
      - name: Check out the repo
        uses: actions/checkout@v2
      - name: Run the build process with Docker
        uses: addnab/docker-run-action@v3
        with:
          image: 'debian:11-slim'
          options: '-v ${{ github.workspace }}:/mnt/curl'
          run: |
            bash /mnt/curl/ci/_docker_script.sh
      - name: Zip packages
        run: |
          pwd
          ls -la
          pushd build
          7za a -r sm-neocurl.zip scripting/ plugins/ extensions/
          ls -la
          pwd
          ls -la
          popd
      - name: Release
        uses: softprops/action-gh-release@v1
        if: startsWith(github.ref, 'refs/tags/')
        with:
          files: |
            ./build/sm-neocurl.zip
          fail_on_unmatched_files: true
          generate_release_notes: true
          # if: contains(github.ref, 'beta')
          # prerelease: true