Skip to content

Commit

Permalink
Initialize first 3 samples
Browse files Browse the repository at this point in the history
  • Loading branch information
richard6094 committed Feb 23, 2024
1 parent e06fb33 commit 62fd9a3
Show file tree
Hide file tree
Showing 111 changed files with 34,602 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .config/samples-config-v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"filterOptions": {
"capabilities": [
"AI-Assistant",
"AIGC",
"Word",
"Excel",
"PowerPoint"
],
"languages": [
"TS",
"JS"
],
"technologies": [
"Office Add-in"
]
},
"samples": [
{
"id": "Word-Add-in-AI-Assistant",
"onboardDate": "2021-11-30",
"title": "Create a Word AI-AssisStant Add-in",
"shortId": "Word AI-Assistant",
"shortDescription": "A word add in interact with AI service and word document",
"fullDescription": "This add-in demonstrates Word add-in capabilities to insert content generated by AI or edited manually into Document Comment Footnote and Header. There're two mode: chat mode and predefined prompt prefix to generate text/picture.",
"types": [
"Tab"
],
"tags": [
"TS",
"AI-Assistant",
"Office Add-in",
"Word"
],
"time": "5min to run",
"configuration": "Ready for debug",
"thumbnailPath": "assets/thumbnail.png",
"gifPath": "assets/sampleDemo.gif",
"suggested": true
},
{
"id": "Word-Add-in-AIGC",
"onboardDate": "2021-11-30",
"title": "Create a Word AIGC Add-in",
"shortId": "Word AIGC",
"shortDescription": "A word add in interact with AI service and word document",
"fullDescription": "This add-in demonstrates Word add-in capabilities to insert content generated by AI or edited manually into Document Comment Footnote and Header. There're two mode: chat mode and predefined prompt prefix to generate text/picture.",
"types": [
"Tab"
],
"tags": [
"TS",
"AIGC",
"Office Add-in",
"Word"
],
"time": "5min to run",
"configuration": "Ready for debug",
"thumbnailPath": "assets/thumbnail.png",
"gifPath": "assets/sampleDemo.gif",
"suggested": true
},
{
"id": "Mail-Merge-Sample-Add-in",
"onboardDate": "2021-11-30",
"title": "Create an Excel Mail Merge Add-in",
"shortId": "Excel Mail Merge",
"shortDescription": "A excel add in interact with excel document and mail merge service",
"fullDescription": "This add-in demonstrates Excel add-in capabilities to insert content generated by mail merge service into Excel document.",
"types": [
"Tab"
],
"tags": [
"TS",
"Mail Merge",
"Excel"
],
"time": "5min to run",
"configuration": "Ready for debug",
"thumbnailPath": "assets/taskpane.png",
"gifPath": "assets/sampleDemo.gif",
"suggested": false
}
]
}
50 changes: 50 additions & 0 deletions .github/workflows/compressandrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Compress Projects and Release

on:
workflow_dispatch:
create:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install zip
run: sudo apt-get install zip

- name: Compress directories
run: |
for dir in */; do
base=$(basename "$dir")
zip -r "${base}.zip" "$dir"
echo "${base}.zip" >> zipfiles.txt
done
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }} # This will be your-tag-name for a tag
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Release Assets
run: |
upload_url="${{ steps.create_release.outputs.upload_url }}"
upload_url="${upload_url/\{?name,label\}/}"
for asset_path in $(cat zipfiles.txt); do
asset_name=$(basename $asset_path)
echo "Uploading $asset_path as $asset_name"
curl \
--data-binary @"$asset_path" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: $(file -b --mime-type $asset_path)" \
"$upload_url?name=$asset_name"
done
Loading

0 comments on commit 62fd9a3

Please sign in to comment.