Skip to content

Commit

Permalink
Updated README.md and added new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
breadrock1 committed Dec 25, 2022
1 parent 8e309cd commit 92f17fb
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-project-action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Checker

run-name: ${{ github.actor }} is building action
on: [ push pull_request ]
on: pull_request

jobs:

Expand Down
88 changes: 88 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Creating Release

run-name: ${{ github.actor }} is building action

on:
push:
branches:
- 'release/**'

jobs:

create-release:
name: Create release
runs-on: ubuntu-latest

outputs:
version_output: ${{ steps.version.outputs.project_version }}
upload_url_output: ${{ steps.release.outputs.upload_url }}

steps:
- name: Checkout branch
id: checkout
uses: actions/checkout@v2

- name: Project version
id: version
run: echo "project_version=$(cat VERSION)" >> $GITHUB_OUTPUT

- name: Create release
id: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: false
prerelease: false
body_path: CHANGELOG
tag_name: icmpflood-${{ steps.version.outputs.project_version }}
release_name: icmpflood-${{ steps.version.outputs.project_version }}

linux-build:
name: Linux build
runs-on: ubuntu-latest
needs: create-release
permissions:
contents: write
strategy:
matrix:
python-version: [ "3.9" ]

steps:
- name: Checkout code
id: checkout
uses: actions/checkout@v2

- name: Set up python ${{ matrix.python-version }}
id: python-setup
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pdoc3
- name: Pydoc generation
run: |
pdoc3 --force --html --output-dir docs icmpflood
- name: Create archive
id: archive
uses: vimtor/action-zip@5f1c4aa587ea41db1110df6a99981dbe19cee310
with:
files: .
dest: icmpflood-docs-${{ needs.create-release.outputs.version_output }}.zip
recursive: true

- name: Upload linux artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url_output }}
asset_name: ispyvisor-linux-${{ needs.create-release.outputs.version_output }}.zip
asset_path: ./ispyvisor-linux-${{ needs.create-release.outputs.version_output }}.zip
asset_content_type: application/zip
9 changes: 9 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## What's Changed
* Improve/add multithreading by @breadrock1 in https://github.com/breadrock1/ICMPFlood/pull/3
* Create pylint.yml by @breadrock1 in https://github.com/breadrock1/ICMPFlood/pull/6
* Refactore/code refactoring by @breadrock1 in https://github.com/breadrock1/ICMPFlood/pull/7
* Actions/add build action by @breadrock1 in https://github.com/breadrock1/ICMPFlood/pull/8
* Refactore/code refactoring 2 by @breadrock1 in https://github.com/breadrock1/ICMPFlood/pull/10


**Full Changelog**: https://github.com/breadrock1/ICMPFlood/compare/v.1.1.0...v.1.2.0
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.2.0

0 comments on commit 92f17fb

Please sign in to comment.