Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke committed Apr 17, 2022
1 parent 00f2752 commit 71b0c18
Show file tree
Hide file tree
Showing 23 changed files with 583 additions and 703 deletions.
239 changes: 0 additions & 239 deletions .dockerignore

This file was deleted.

60 changes: 55 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,69 @@ name: CI
on:
pull_request:
push:
tags:
- 'v*'
branches:
- master
- main

jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.10'

- run: pip3 install build
- run: python3 -m build
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist/**
if-no-files-found: error
retention-days: 5
lint:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
name: Linting
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- uses: ricardochaves/python-lint@v1.1.0
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- uses: ricardochaves/python-lint@v1.4.0
with:
python-root-list: "openvpn_auth_azure_ad"
use-pylint: false
use-isort: false
use-mypy: false

publish:
name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

release:
name: Create release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ github.ref_name }}
draft: false
prerelease: ${{ contains(github.ref_name, 'rc') }}
body: |-
# CHANGELOG
* https://github.com/jkroepke/openvpn-auth-azure-ad/blob/${{ github.ref_name }}/CHANGELOG.md
## DockerHub
* https://hub.docker.com/r/jkroepke/openvpn-auth-azure-ad/tags?name=${{ github.ref_name }}
56 changes: 0 additions & 56 deletions .github/workflows/release.yaml

This file was deleted.

6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
*.iml
.idea

contrib/.tmp
!contrib/.tmp/.gitkeep
tests/openvpn/
!tests/openvpn/.gitkeep
out/

### Python template
# Byte-compiled / optimized / DLL files
Expand All @@ -21,6 +22,7 @@ dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
Expand Down

0 comments on commit 71b0c18

Please sign in to comment.