Skip to content

Commit 74bd88a

Browse files
committed
init
Signed-off-by: xiexianbin <me@xiexianbin.cn>
1 parent 21eeb75 commit 74bd88a

22 files changed

Lines changed: 423 additions & 3 deletions

.github/labeler.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# https://github.com/actions/labeler/blob/master/README.md
2+
3+
src:
4+
- src/*
5+
6+
repo:
7+
- Dockerfile
8+
- entrypoint.sh
9+
10+
.github-actions:
11+
- .github
12+
13+
license:
14+
- ./LICENSE

.github/workflows/actions.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Hugo Build Action
12+
uses: x-actions/hugo@release/v1
13+
env:
14+
GITHUB_EMAIL: "me@xiexianbin.cn"
15+
GITHUB_USERNAME: "xiexianbin"
16+
HUGO_ARGS: "version"

.github/workflows/greetings.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Greetings
2+
3+
on: [pull_request, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/first-interaction@v1
10+
with:
11+
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
issue-message: 'Message that will be displayed on users'' first issue'
13+
pr-message: 'Message that will be displayed on users'' first pr'

.github/workflows/label.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This workflow will triage pull requests and apply a label based on the
2+
# paths that are modified in the pull request.
3+
#
4+
# To use this workflow, you will need to set up a .github/labeler.yml
5+
# file with configuration. For more information, see:
6+
# https://github.com/actions/labeler/blob/master/README.md
7+
8+
name: Labeler
9+
on: [pull_request]
10+
11+
jobs:
12+
label:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/labeler@v2
18+
with:
19+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: '3.x'
18+
- name: Install dependencies
19+
run: |
20+
python3 -m pip install --upgrade pip
21+
pip3 install setuptools wheel twine
22+
- name: Build and publish
23+
env:
24+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
25+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26+
run: |
27+
python3 setup.py sdist bdist_wheel
28+
twine upload dist/*

.github/workflows/stale.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
stale:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/stale@v1
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
stale-issue-message: 'Stale issue message'
17+
stale-pr-message: 'Stale pull request message'
18+
stale-issue-label: 'no-issue-activity'
19+
stale-pr-label: 'no-pr-activity'

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,8 @@ cython_debug/
157157
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160-
#.idea/
160+
.idea/
161+
162+
# self define
163+
.DS_Store
164+
.history

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
xiexianbin <me@xiexianbin.cn>

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CHANGES
2+
=======
3+
4+
v0.1.0
5+
------
6+
7+
* feautre: base func, convert ipynb to hugo markdown files
8+
* init commit

Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM ubuntu:22.04
2+
3+
# Dockerfile build cache
4+
ENV REFRESHED_AT 2023-05-07
5+
6+
LABEL "com.github.actions.name"="nbcli"
7+
LABEL "com.github.actions.description"="nbcli"
8+
LABEL "com.github.actions.icon"="chevrons-right"
9+
LABEL "com.github.actions.color"="blue"
10+
LABEL "repository"="http://github.com/x-actions/python3-nbcli"
11+
LABEL "homepage"="http://github.com/x-actions/python3-nbcli"
12+
LABEL "maintainer"="xiexianbin<me@xiexianbin.cn>"
13+
14+
LABEL "Name"="nbcli"
15+
LABEL "Version"="1.0.0"
16+
17+
ENV LC_ALL C.UTF-8
18+
ENV LANG en_US.UTF-8
19+
ENV LANGUAGE en_US.UTF-8
20+
21+
# apt install -y docker-ce docker-ce-cli containerd.io; systemctl start docker
22+
RUN apt update && \
23+
apt install -y git python3 python3-pip skopeo jq && \
24+
cd ~ && \
25+
git clone https://github.com/x-actions/python3-nbcli.git && \
26+
cd python3-nbcli && \
27+
git checkout v1 && \
28+
pip3 install -r requirements.txt && \
29+
python3 setup.py --version && \
30+
python3 setup.py install
31+
32+
ADD entrypoint.sh /
33+
RUN chmod +x /entrypoint.sh
34+
35+
WORKDIR /github/workspace
36+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)