Skip to content

Commit

Permalink
Passage de la compilation du paquet debian en action github
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolite committed Jun 22, 2022
1 parent 55b38b2 commit adf11e6
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 7 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and release

on:
push:
tags:
- '**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Organize files
run: |
mkdir -p build/etc/rok4/tilematrixsets
cp *.json build/etc/rok4/tilematrixsets/
- name: Build debian package
id: build_debian
uses: jiro4989/build-deb-action@v2
with:
package: rok4-tilematrixsets
package_root: build
maintainer: Géoportail<[email protected]>
version: ${{ github.ref }}
arch: 'all'
desc: 'Tile Matrix Sets define grids to process then broadcast geographical data as tile'

- 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 }}
draft: false
prerelease: false

- name: Add debian package to release
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./${{ steps.build_debian.outputs.file_name }}
asset_name: ${{ steps.build_debian.outputs.file_name }}
asset_content_type: application/vnd.debian.binary-package
5 changes: 0 additions & 5 deletions DEBIAN/control

This file was deleted.

2 changes: 0 additions & 2 deletions DEBIAN/preinst

This file was deleted.

0 comments on commit adf11e6

Please sign in to comment.