File: deploy.yml

package info (click to toggle)
avrdude 7.1%2Bdfsg-4
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 4,328 kB
  • sloc: ansic: 42,495; yacc: 1,479; lex: 282; makefile: 238; sh: 156; cpp: 141; xml: 82
file content (78 lines) | stat: -rw-r--r-- 2,264 bytes parent folder | download | duplicates (2)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#
# deploy.yml - GitHub deploy action for AVRDUDE
# Copyright (C) 2021 Marius Greuel
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

name: Deploy

on:
  push:
    tags:
      - 'v*'

jobs:
  build:
    uses: avrdudes/avrdude/.github/workflows/build.yml@main

  release:
    needs: build
    runs-on: ubuntu-latest
    outputs:
      upload_url: ${{ steps.create_release.outputs.upload_url }}
    steps:
      - name: Create Release
        id: create_release
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
        with:
          tag_name: ${{github.ref}}
          release_name: AVRDUDE ${{github.ref}}
          body: "See **[Release Notes](https://github.com/avrdudes/avrdude/blob/main/NEWS)** for changes"
          draft: false
          prerelease: false

  asset-msvc:
    needs: release
    runs-on: ubuntu-latest
    strategy:
      matrix:
        include:
          - { arch: x86 }
          - { arch: x64 }
          - { arch: arm64 }
    steps:
      - name: Download artifact
        uses: actions/download-artifact@v2
        with:
          name: avrdude-msvc-${{matrix.arch}}

      - name: Create release asset
        run: >-
          zip -j asset.zip
          avrdude.exe
          avrdude.pdb
          avrdude.conf

      - name: Upload release asset
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
        with:
          upload_url: ${{needs.release.outputs.upload_url}}
          asset_path: ./asset.zip
          asset_name: avrdude-${{github.ref_name}}-windows-${{matrix.arch}}.zip
          asset_content_type: application/zip